Jump to content

subdomains in apache


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	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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...