httpd.conf screwed up, it now ignores my subdomain aliases
Posted by: brant (---.nwrknj.fios.verizon.net)
Date: June 12, 2012 05:15AM

I was modifying my httpd.conf and did not save a backup. Now it seems to ignore my subdomains. I am probably missing something, but can anyone help? hosts file remains unchanged and has all localhost aliases added.

##########################

<VirtualHost 127.0.0.1>
DocumentRoot "G:\wamp\www"
ServerName localhost
</VirtualHost>

<VirtualHost 127.0.0.1>
DocumentRoot "G:\wamp\www\m"
ServerName m.localhost
ErrorLog logs/subdomain_error.log
</VirtualHost>

<VirtualHost 127.0.0.1>
DocumentRoot "G:\wamp\www\careers"
ServerName careers.localhost
ErrorLog logs/subdomain_error.log
</VirtualHost>

###########################

Options: ReplyQuote
Re: httpd.conf screwed up, it now ignores my subdomain aliases
Posted by: brant (---.nwrknj.fios.verizon.net)
Date: June 12, 2012 05:34AM

I made the following changes to fix:

##########################
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot "G:\wamp\www"
ServerName localhost
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "G:\wamp\www\m"
ServerName m.localhost
ErrorLog logs/subdomain_error.log
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "G:\wamp\www\careers"
ServerName careers.localhost
ErrorLog logs/subdomain_error.log
</VirtualHost>

###########################

Options: ReplyQuote


Sorry, only registered users may post in this forum.