CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Should Local Host have a / (http://www.codingforums.com/showthread.php?t=280461)

doubledee 11-02-2012 03:31 AM

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..
Code:

127.0.0.1 local.one
127.0.0.1 local.debbie


2.) My Applications: MAMP: conf: apache: httpd.conf as follows...
Code:

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?! :confused:


(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?!

Thanks,


Debbie


All times are GMT +1. The time now is 12:54 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.