Jump to content

subdomains in apache


xjx424

Recommended Posts

Hi,I am trying to learn how to add a subdomain in apache. It seems easy enough but I can't get it to work. So far I have added my virtual host

<VirtualHost *:80>DirectoryIndex index.phpDocumentRoot "/var/www/taylorprops.com/sub/"ServerName agents.taylorprops.comServerAlias www.agents.taylorprops.com<Directory "/var/www/taylorprops.com/sub/">Options Indexes FollowSymLinks MultiViews +IncludesAllowOverride NoneOrder allow,denyallow from all</Directory></VirtualHost>

added this to my hosts file

127.0.0.1	agents.taylorprops.com

then pointed the a record to agents.taylorprops.com and *.agents.taylorprops.comthen enabled the siteand restarted apache.What am I missing?Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...