Alias and Virtual Host
Posted by: theBrettman (---.aubnin.fios.verizon.net)
Date: August 25, 2009 04:19AM

what's the difference between the two? I'm using wamp for my dev server. I want different document roots for different sites I'm doing. I set up an alias from the menu but what do I use for the host address to connect to make a database? I noticed when I made an alias, it didn't add a virtual host in the httpd.conf. Here's the alias conf:
Alias /ampac/ "c://Documents and Settings/Brett/My Documents/wwwroot/Ampac/" 

<Directory "c://Documents and Settings/Brett/My Documents/wwwroot/Ampac/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order allow,deny
    Allow from all
</Directory>

So is the host name "localhost/ampac/" cause that's not working!

Options: ReplyQuote
Re: Alias and Virtual Host
Posted by: yfastud (Moderator)
Date: August 25, 2009 04:32AM

first, there is only 1 / after drive letter. second, avoid blank space in path. third, alias set another name for site already setup but no options can be added; in other word, use vh if want to have more options for each separate sites

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.