Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Should Local Host have a /
11-02-2012, 04:31 AM #1
Should Local Host have a /
I am wondering if I should or should not have a trailing slash on my Virtual Host that I created to do development on my MacBook.
Here is what I currently have...
1.) My Macintosh HD: private: etc: hosts as follows..
127.0.0.1 local.one 127.0.0.1 local.debbie
2.) My Applications: MAMP: conf: apache: httpd.conf as follows...
NameVirtualHost * <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>
Someone told me that Apache always appends a "/" after the Domain or Local Host, but I am thinking I should manually define it in the samples above?!
(Personally, when I go to "www.MySite.com" or "local.debbie" I do NOT want to see a "/" after the domain/host, because most people see those as "Home Pages" and not the "Root Directory" if you follow me?! However, if I had an empty directory, then "local.debbie/uploads" would seem to make more sense.)
Hope all of this makes sense?!