Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 1st July 2006, 12:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

What's in /root/ispconfig/isp/conf/vhost.conf.master?

Can you post the contents of one of those Vhosts_ispconfig.conf with date appended?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #12  
Old 1st July 2006, 20:03
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

vhost.conf.master - 2 posts up

Vhost_ispconfig.conf_30-06-06_15-23-20:

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
192.168.1.2:80
192.168.1.2:80
#
#
######################################
# Vhost: www.whittyhost.us.to:80
######################################
#
#
<VirtualHost 192.168.1.2:80>
ServerName www.whittyhost.us.to:80
ServerAdmin webmaster@whittyhost.us.to
DocumentRoot /home/www/web1/web
ServerAlias whittyhost.us.to admin.whittyhost.us.to www.whittyhost.us.to mail.whittyhost.us.to whittyhost.info admin.whittyhost.info mail.whittyhost.info www.whittyhost.info woot.whittyhost.us.to splunk.whittyhost.us.to
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/ /home/www/web1/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web1/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 /home/www/web1/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web1/phptmp/
php_admin_value session.save_path /home/www/web1/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web1/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 ^/~([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web1/user/$1/web/$3
# RewriteEngine on # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^admin\.whittyhost\.us\.to [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) https://admin.whittyhost.us.to:81/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^mail\.whittyhost\.us\.to [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) https://mail.whittyhost.us.to/roundcubemail/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^admin\.whittyhost\.info [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) https://admin.whittyhost.us.to:81/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^mail\.whittyhost\.info [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) https://mail.whittyhost.us.to:81/roundcubemail/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^www\.whittyhost\.info [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) http://www.whittyhost.us.to/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^splunk\.whittyhost\.us\.to [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) https://splunk.whittyhost.us.to:8001/$1 [L,R] # NOT SUPPORTED!
</VirtualHost>
#
#
#
######################################
# Vhost: www.whittyhost.dyndns.org:80
######################################
#
#
<VirtualHost 192.168.1.2:80>
ServerName www.whittyhost.dyndns.org:80
ServerAdmin webmaster@whittyhost.dyndns.org
DocumentRoot /home/www/web2/web
ServerAlias www.whittyhost.dyndns.org m0n0wall.whittyhost.dyndns.org monowall.whitty.dyndns.org www.whitty.dyndns.org
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/ /home/www/web2/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/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 /home/www/web2/
php_admin_value file_uploads 1
php_admin_value upload_tmp_dir /home/www/web2/phptmp/
php_admin_value session.save_path /home/www/web2/phptmp/
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/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 ^/~([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web2/user/$1/web/$3
# RewriteEngine on # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^www\.whittyhost\.dyndns\.org [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) http://www.whittyhost.us.to/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^m0n0wall\.whittyhost\.dyndns\.org [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) https://m0n0wall.whittyhost.dyndns.org:444/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^monowall\.whitty\.dyndns\.org [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) https://m0n0wall.whittyhost.dyndns.org:444/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^www\.whitty\.dyndns\.org [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) http://www.whittyhost.us.to/$1 [L,R] # NOT SUPPORTED!
</VirtualHost>
#
#
#
######################################
# Vhost: www.alexwhittemore.us.to:80
######################################
#
#
<VirtualHost 192.168.1.2:80>
ServerName www.alexwhittemore.us.to:80
ServerAdmin webmaster@alexwhittemore.us.to
DocumentRoot /home/www/web5/web
ServerAlias blog.alexwhittemore.us.to alexwhittemore.us.to www.alexwhittemore.info blog.alexwhittemore.info www.awhittemore.info blog.awhittemore.info woah.alexwhittemore.us.to
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/ /home/www/web5/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web5/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 Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/home/www/web5/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 ^/~([^/]+)(/(.*))? /home/www/web5/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web5/user/$1/web/$3
# RewriteEngine on # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^www\.alexwhittemore\.info [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) http://www.alexwhittemore.us.to/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^blog\.alexwhittemore\.info [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) http://blog.alexwhittemore.us.to/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^www\.awhittemore\.info [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) http://www.alexwhittemore.us.to/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^blog\.awhittemore\.info [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*) http://blog.alexwhittemore.us.to/$1 [L,R] # NOT SUPPORTED!
# RewriteCond %{HTTP_HOST} ^woah\.alexwhittemore\.us\.to [NC] # NOT SUPPORTED!
# RewriteRule ^/(.*)$ http://www.alexwhittemore.us.to/woah/$1 [R] # NOT SUPPORTED!
</VirtualHost>
Reply With Quote
  #13  
Old 2nd July 2006, 18:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
Default

Quote:
Originally Posted by whitty
vhost.conf.master - 2 posts up
The file must look like this:

Code:
{FP_RESOURCE_CONFIG}
{FP_ACCESS_CONFIG}
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
<!-- BEGIN DYNAMIC BLOCK: namevhost -->
{SERVERIP}
<!-- END DYNAMIC BLOCK: namevhost -->
#
#
<!-- BEGIN DYNAMIC BLOCK: vhost -->

######################################
# Vhost: {SERVERNAME}
######################################
#
#
<VirtualHost {IP}>
{HTTPD_INCLUDE}
{SUEXEC}
ServerName {SERVERNAME}
ServerAdmin {SERVERADMIN}
DocumentRoot {DOCUMENTROOT}
{SERVERALIAS}
{DIRECTORYINDEX}
{CGI}
ErrorLog {WEB_ERROR_LOG}
{PHP}
{SSI}
{WAP}
{ERRORALIAS}
{ERROR}
AliasMatch ^/~([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
{REWRITE_RULE}
{FRONTPAGE}
</VirtualHost>
#
{SSL}
#
#
<!-- END DYNAMIC BLOCK: vhost -->
It seems you edited the file...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #14  
Old 3rd July 2006, 03:56
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I know, that's what I said - i changed that manually to facilitate a solution for easier domain record managment for customer-level users on a server behind NAT. the solution worked for at least a month until this happened, through many changes. I guess i'll try making that template 100% default then going back through and making my changes once it works again :P Thanks for sticking with me through this issue!
Reply With Quote
  #15  
Old 3rd July 2006, 18:10
whitty whitty is offline
Member
 
Join Date: May 2006
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've solved it!

To all those running ISPConfig behind a NAT router (i suggest talking to me directly anyway, but if your just doing it on your own ):

Originally (with ispconfig ver. 2.2.2): I wanted to set the ip addresses for all my vhost sites as my public address since that when customer users added codomains, they'd be entered into the system with the ip address that would properly resolve - the public one. That also results, however, in the apache vhost being set with the public ip, and it wont listen on the only ip actually open to it, the local one. Now you'll notice that the individual site vhosts arent the only ones in Vhost_ispconfig.conf - theres another up at the top that directs queries to the ip itself to the "shared ip" page. This also needs to be set to the proper local ip address. In version 2.2.2, what i did was

1. replace {SERVERIP} in that top block under "begin dynamic block namevhost" with my local ip "192.168.1.2:80". I then went through the rest of the file and found another ip variable for all the other vhost blocks. I then

2. changed the {IP} variable after <virtualhost in that next block to my local ip again "192.168.1.2:80". Having done that, my entire conf file was set to my local ip, meaning nothing i did on the ispconfig side of things would mess up my apache configuration while it would still allow me to add/remove vhosts and redirects and the like. Not changing the ip wasn't a problem because even if i added a new public ip somehow, my private ip still wouldnt change.

in version 2.2.3 however, my best guess is that {SERVERIP} changed to holding the entire

NameVirtualHost ip:80
<VirtualHost ip:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>

block instead of just the ip. This meant that it broke my system, and it now placed

192.168.1.2:80
192.168.1.2:80

where the proper block should have been. Note that my edit of {IP} in the VirtualHost block didn not break.

The soluion was simply to add a random localhost holder site in ispconfig with the ip address 192.168.1.2. This way, ISPConfig recognizes that that ip is used and adds a proper block before it instead of the junk string above (which causes apache start to fail) It still maintains the block with the public ip as well, but all that matters is that it now has the local ip too.

If you need any more help on these lines, post here or email me at galexyalex [at} gmail {dot] com
Reply With Quote
  #16  
Old 3rd July 2006, 22:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,713 Times in 2,556 Posts
 
Default

Quote:
Originally Posted by whitty
in version 2.2.3 however, my best guess is that {SERVERIP} changed to holding the entire
The behaviour hasn't changed in 2.2.3...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
drupal setup with several vhosts scherpenzeel Installation/Configuration 4 2nd June 2006 12:13
vhosts symmetry Installation/Configuration 12 22nd May 2006 09:34
Not written "vhosts_ispconfig.conf" misterm Installation/Configuration 25 26th April 2006 14:58
How do we make individual changes at vhosts that will not be overwritten by ISPC? tom Installation/Configuration 1 23rd April 2006 13:56
Vhosts Temp. nok Installation/Configuration 2 25th February 2006 12:45


All times are GMT +2. The time now is 14:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.