Results 1 to 4 of 4
Nov 1, 2012, 20:43 #1
- Join Date
- Aug 2010
- 2 Post(s)
- 0 Thread(s)
Should Local Host end with slash "/"
Someone I know is telling me that Apache will automatically appends a forward slash on to the end of either my domain name or Local Host.
But what confuses me is that in my Virtual Host file on my macBook, I have this for the Local Host...
My Macintosh HD: private: etc: hosts as follows..
127.0.0.1 local.one 127.0.0.1 local.debbie
And my Applications: MAMP: conf: apache: httpd.conf as follows...
# Uncommented the line below on 2011-08-13 NameVirtualHost * # Added on 2011-08-13 <VirtualHost *:80> # DocumentRoot /Applications/MAMP/htdocs DocumentRoot "/Users/user1/Documents/DEV/++htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot "/Users/user1/Documents/DEV/++htdocs/00_AAA" ServerName local.one </VirtualHost> <VirtualHost *:80> DocumentRoot "/Users/user1/Documents/DEV/++htdocs/06_Debbie" ServerName local.debbie </VirtualHost>
In essence, what I hear this person saying is that I should have something like this instead...
What I do know is this...
I normally expect a domain to look like this...
...and even the Local Host in my browser during testing should probably be...
...since that is really my "Home Page" locally - and not some empty directory, which is how I would read as local.debbie/