July 22, 201016 yr Hey Guys! I am having some problems with Apache and my DNS (I think). When ever I create a subdomain entry in apache2.conf, and add a A record. The subdomain just redirects to the file directory. E.g. static - A - **.**.***.** DocumentRoot /home/sitename/public_html/sub/static ServerName static.sitename.com When I go to static.sitename.com in my browser I am just getting sent to sitename.com/sub/static. I do not believe this is an htaccess problem or similar, as it happens with all of my domains. NameVirtualHost 85.25.***.**:80 <VirtualHost 85.25.***.**:80> DocumentRoot /home/sitename/public_html ServerName sitename.com ServerAlias www.sitename.com <Directory "/home/sitename/public_html"> Options +Indexes FollowSymLinks +ExecCGI AllowOverride AuthConfig FileInfo Order allow,deny Allow from all </Directory> </VirtualHost> <VirtualHost 85.25.153.44:80> DocumentRoot /home/sitename/public_html/sub/static ServerName static.sitename.com ServerAlias static.sitename.com <Directory "/home/sitename/public_html/sub/static"> </Directory> UseCanonicalName off </VirtualHost> You can view this with http://static.fpsoverload.com Thanks.
Create an account or sign in to comment