PDA

View Full Version : Setting up vhosts, please help me


kobescoresagain
08-10-2006, 04:25 PM
I am trying to set up a vhost on my server for the following urls www.sportscardcritics.com and www.sprotscardchecklists.com I have had these added to the name server, and I have pointed the url to that server, I just seem to be having issues getting anything to show up. Here is the vhost for sportscardcritics.com

## vaddhost: (sportscardcritics.com) at 161.58.218.180:80
<VirtualHost 161.58.218.180:80>
User sportscardfreaks
Group sportscardfreaks
ServerName sportscardcritics.com
ServerAlias www.sportscardcritics.com
ServerAdmin root@sportscardcritics.com
DocumentRoot /usr/local/apache/vhosts/sportscardcritics.com
ScriptAlias /cgi-bin/ "/home/sportscardfreaks/www/cgi-bin/"
<Directory /home/sportscardfreaks/www/cgi-bin>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
TransferLog /dev/null
ErrorLog /dev/null
</VirtualHost>

here it is for sportscardchecklist.com

## vaddhost: (sportscardchecklist.com) at 161.58.218.180:80
<VirtualHost 161.58.218.180:9878>
User sportscardfreaks
Group sportscardfreaks
ServerName sportscardchecklist.com
ServerAlias www.sportscardchecklist.com
ServerAdmin root@sportscardchecklist.com
DocumentRoot /home/sportscardfreaks/www/sportscardchecklist.com
ScriptAlias /cgi-bin/ "/home/sportscardfreaks/www/cgi-bin/"
<Directory /home/sportscardfreaks/www/cgi-bin>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
CustomLog /usr/local/apache/logs/sportscardfreaks/sportscardchecklist.com-access_log combined
ErrorLog /usr/local/apache/logs/sportscardfreaks/sportscardchecklist.com-error_log
</VirtualHost>

Ntfu2
08-13-2006, 04:56 PM
Did you restart apache after making these changes?



<VirtualHost xx.xxx.xxx.xx>
ServerAlias xxxxx
ServerAdmin webmaster@jxxxx
DocumentRoot /home/xxxx/public_html
BytesLog domlogs/xxxxx.com-bytes_log
ServerName www.xxxxxxxxx.com

User j++++son
Group j++++son
CustomLog /usr/local/apache/domlogs/xxxxxxx.com combined
ScriptAlias /cgi-bin/ /home/xxxxxx/public_html/cgi-bin/
</VirtualHost>