Hi
So I have a domain name thats in /home/user/public_html which when you use
www.domain.com brings up the right page, how ever now i want todo
http://subdns.domain.com ive edited vhosts.conf for apache and for some reason when i try it it shows me the main page as if i was doing
www.domain.com and not sub.domain.com
here is the
www.domain.com seciton:
Code:
<VirtualHost ip.here.thx:80>
ServerAdmin webmaster@domain.net
DocumentRoot "/home/user/public_html/"
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/user/public_html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
allow from all
</Directory>
ServerName www.domain.net
ServerAlias *.domain.net
ErrorLog "/var/log/httpd/domain.net-error_log"
CustomLog "/var/log/httpd/domain-access_log" common
</VirtualHost>
This is the sub domain section...
Code:
<VirtualHost ip.here.thx:80>
ServerAdmin webmaster@domain.net
DocumentRoot "/home/user/public_html/subdomain"
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/user/public_html/irpg>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
allow from all
</Directory>
ServerName sub.domain.net
ServerAlias *.domain.net
ErrorLog "/var/log/httpd/domain.net-error_log"
CustomLog "/var/log/httpd/domain.net-access_log" common
</VirtualHost>
Also I've noticed that i must place the ip address instead of like this:
<VirtualHost
www.domain.net:80>
</VirtualHost>
Every time i try the above the website will not be shown any ideas?
Thanks