Web Design Forum: Apache and DNS - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Apache and DNS

#1 User is offline   DarkNotes 

  • C-C-Crazy
  • PipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 528
  • Joined: 14-May 08
  • Reputation: 0
  • Gender:Male
  • Location:Spain
  • Experience:Advanced
  • Area of Expertise:Designer/Coder

Posted 22 July 2010 - 01:46 PM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users