View Single Post
  #4  
Old 11th May 2007, 22:26
Ashaman074 Ashaman074 is offline
Junior Member
 
Join Date: May 2007
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks for the post - I actually did use a guide, "The Perfect Setup - Ubuntu 6.10 Server (Edgy Eft)
", and it all went smoothly. Thanks for the information regarding configuration.

I now have the Virtual hosts working (for web access anyway). This server is also the firewall; and it is performing PAT. Webmin actually helped point me in the right direction; if not configure anything.

It seems that my Vhosts_ispconfig.conf file listed sites like this "ServerName www.server1.com:80" I removed the "80" from the end, and they seem to be working fine! Does that tell us anything useful? I don't know why it happened or was a problem...

The one problem I do still see right off is that entering the external IP directly does not bring up the "shared IP" website, but instead lists the contenet of /var/www. I will continue checking this out, but again any suggestions are appreciated.

It seems the problem is related to using *, the internal IP, or the internal IP:80 ....?

Here is a section of my .conf file:

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 10.0.0.1:80
<VirtualHost 10.0.0.1:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.thelawrencebarn.com:80
######################################
#
#
<VirtualHost *>
ServerName www.thelawrencebarn.com
ServerAdmin webmaster_1@thelawrencebarn.com
DocumentRoot /var/www/web2/web
ServerAlias thelawrencebarn.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode On
php_admin_value open_basedir /var/www/web2/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /var/www/web2/phptmp/
php_admin_value session.save_path /var/www/web2/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/web2/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
</VirtualHost>
#

Last edited by Ashaman074; 11th May 2007 at 22:43.
Reply With Quote