I have 2 ip address.
I want example.com use 173.x.x.x and files.example.com use 174.x.x.x.
Now example.com works well but files.example.com can't work.
Anyone help me? Thank you.
DNS Record(use Linode DNS):
Code:
A/AAAA Records
Hostname IP Address TTL
173.x.x.x Default
files 174.x.x.x Default
I use debian5.0 32bit system。
ports.onf:
Code:
NameVirtualHost 173.x.x.x:80
NameVirtualHost 174.x.x.x:80
Listen 80
<IfModule mod_ssl.c>
Listen 443
</IfModule>
sites-available/example.com:(This works fine)
Code:
<VirtualHost 173.x.x.x:80>
ServerAdmin admin@example.com
ServerName example.com
DocumentRoot /home/site1/public_html/
ErrorLog /home/site1/logs/error.log
CustomLog /home/site1/log/access.log combined
<Directory /home/site1/public_html>
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
sites-available/files.example.com:(This can't work)
Code:
<VirtualHost 174.x.x.x:80>
ServerAdmin admin@example.com
ServerName files.example.com
DocumentRoot /home/site1/public_html/files
ErrorLog /home/site1/logs/error.log
CustomLog /home/site1/log/access.log combined
</VirtualHost>