[users@httpd] vitual subdomain problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using Apache/1.3.34 (Unix) PHP/4.4.2 configured with 4.11-STABLE FreeBSD
 
I am having trouble creating a subdomain the rest of my virtual sites seem to work. 
 
THE problem is that everytime i try to view the content for site1.computerking.ca i get the content from www.computerking.ca which is the default site.  
 
pretty sure my dns works as i can ping and get the right ip
 
 ping site1.computerking.ca
PING site1.computerking.ca (68.146.204.152) 56(84) bytes of data.
64 bytes from computerking.ca (68.146.204.152): icmp_seq=0 ttl=60 time=19.9 ms
64 bytes from computerking.ca (68.146.204.152): icmp_seq=1 ttl=60 time=13.3 ms
 
I have an A record added to the named server for the site site1.computerking.ca like below i also tried a cname  but that did not work either
 
site1.computerking.ca.          IN A            68.146.204.152
site2.computerking.ca.          IN CNAME        computerking.ca.
 
I have included the virtual host default snip of my httpd.conf file because that is the page that keeps coming up instead of the subdomain one. Also the snip of my include file that corresponds to the site1.computerking.ca webpage.
 
<VirtualHost _default_:*>
ServerName computerking.ca
ServerAlias www.computerking.ca
DocumentRoot /home/computerking.ca/public_html
ErrorLog /home/computerking.ca/logs/error_log
CustomLog /home/computerking.ca/logs/access_log common
#ScriptAlias /cgi-bin/ /home/computerking.ca/cgi-bin/
<Directory /home/computerking.ca/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
</Directory>
</VirtualHost>
 
Include /usr/local/etc/apache/vhost.conf
 
<VirtualHost *:80>
# ============ This the *SUB* site1.computerking.ca virtual host =========
 
ServerName site1.computerking.ca
DocumentRoot /home/computerking.ca/domains/site1.computerking.ca/public_html
ErrorLog /home/computerking.ca/domains/site1.computerking.ca/logs/error_log
CustomLog /home/computerking.ca/domains/site1.computerking.ca/logs/access_log common
ScriptAlias /cgi-bin/ /home/computerking.ca/domains/site1.computerking.ca/cgi-bin/
<Directory /home/computerking.ca/domains/site1.computerking.ca/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
</Directory>
 
#       SuexecUserGroup computerking.ca computerking.ca
#       <Directory /home/computerking.ca/domains/site1.computerking.ca/cgi-bin >
#               Options +ExecCGI +Indexes
#               AddHandler cgi-script .cgi
#       </Directory>
</VirtualHost>

Also there is nothing in the logs for the virthost nothing seems to happen in the main /var/log/http-error or access logs
 
 

 
 
 

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux