Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-02-2012, 03:31 AM   PM User | #1
doubledee
Regular Coder

 
doubledee's Avatar
 
Join Date: Mar 2011
Location: Arizona
Posts: 617
Thanks: 19
Thanked 0 Times in 0 Posts
doubledee has a little shameless behaviour in the past
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?!


(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
doubledee is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:20 PM.


Advertisement
Log in to turn off these ads.