Jump to content

Apache failing to load Zope after migrating server


rugbert

Recommended Posts

I migrated a server from one machine to another (using this thread: http://ubuntuforums.org/showthread.php?t=35087) and while most everything transferred over correctly (some permission settings didnt) apache isnt %100 working.

 

There are two virtual host files, the default, and the mysite.test.com. and Mysite is using zope for all the web stuff. At first, apache would only server the default virtualhost file, but I disabled it and now I get a 503 error. Im assuming zope is failing to load correctly, how can I fix this?

 

 

edit - I found this in the error log:

127.0.0.1 - - [07/Oct/2008:05:27:41 -0500] "GET / HTTP/1.0" 503 323 "-" "Apache/2.2.3 (Ubuntu) PHP/5.2.1 mod_ssl/2.2.3 OpenSSL/0.9.8c (internal dummy connection)"

 

this is driving me insane!!

Link to comment
Share on other sites

here is my virtual host file:

 

<VirtualHost *>

# ServerAdmin webmaster@speaker.com

# ServerName mysite.test.com

# ServerAlias www.mysite.test.com

 

DocumentRoot /var/www/global

# DocumentRoot /var/www/mysite.test.com/html

 

<Directory />

Options None

AllowOverride None

</Directory>

 

<IfModule mod_deflate.c>

<Location />

SetOutputFilter DEFLATE

BrowserMatch ^Mozilla/4 gzip-only-text/html

BrowserMatch ^Mozilla/4\.0[678] no-gzip

BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

Header append Vary User-Agent env=!dont-vary

</Location>

</IfModule>

 

<Directory /var/www/mysite.test.com/html>

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

allow from all

# Uncomment this directive is you want to see apache2's

# default start page (in /apache2-default) when you go to /

#RedirectMatch ^/$ /apache2-default/

</Directory>

 

#SuexecUserGroup awstats nogroup

 

####### Webalizer redirection

Alias /webalizer/ /var/www/mysite.test.com/webalizer/

<Directory "/var/www/mysite.test.com/webalizer">

AllowOverride All

</Directory>

RewriteEngine on

RewriteLog "/var/log/apache2/rewrite.log"

RewriteLogLevel 0

# AllowOverride None

 

 

# Don't Rewrite static content into zope

RewriteRule ^/webalizer - [L]

 

# Use mod_proxy and Zope's VirtualHostMonster to serve Zope from behind Apache

# RewriteRule ^/(.*) http://localhost:9673/VirtualHostBase/http/www.sample.com:80/site_main/VirtualHostRoot/$1 [P]

 

 

 

Alias /awstats-icon/ /usr/share/awstats/icon/

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

<Directory "/usr/lib/cgi-bin">

AllowOverride None

Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch

Order allow,deny

Allow from all

AuthType Basic

AuthName "Speaker.com CGI"

AuthUserFile /etc/awstats/.htpasswd

require valid-user

BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On

</Directory>

 

ErrorLog /var/log/apache2/mysite.test.com-error.log

 

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

LogLevel notice

 

CustomLog /var/log/apache2/mysite.test.com-access.log combined

 

RewriteEngine On

#RewriteLogLevel 4

#RewriteLog "/var/log/apache2/rewrite.log"

 

#From cissecurity.org

RewriteRule [^a-zA-Z0-9|\.|/|_|-] - [F]

RewriteCond %{REQUEST_METHOD} ^TRACE

RewriteRule .* - [F]

 

RewriteCond %{REQUEST_URI} \.(exe|com|dll|conf|log|htr|cer|cdx|bat|cmd|mdb|as p|aspx|zip|rar|cfg|dbf|udl|old|bak|c|php)$

RewriteRule ^(.*) http://%{HTTP_HOST}/$1 [F]

 

#Also wanted .c ... but that filters out all .css files ... So I added it to the extension filter above

RewriteCond %{REQUEST_URI} (/|\.)(\.\.|\./|\\|\\%|\&|\#|\<|\>|\$|\@|\!|\,|\~|\'|\;|passwd| _vti|backup|root|bak|bkup|test|temp|etc|odbc|w3svc |_derived|netcat|password|nobody)(/|\.)

RewriteCond %{REQUEST_URI} !/zroot

RewriteRule ^(.*) http://%{HTTP_HOST}/$1 [F]

 

RewriteCond %{QUERY_STRING} \.\.|\./|\\|\\%|\&|\#|\<|\>|\$|\@|\!|\,|\~|\'|\;|passwd| _vti|backup|root|bak|bkup|test|temp|etc|odbc|w3svc |_derived|netcat|password|admin|nobody

RewriteRule ^(.*) http://%{HTTP_HOST}/$1 [F]

 

#/tools available to internal networks

#/tools/**/files/* available to all

RewriteCond %{REQUEST_URI} !^/tools/.*/files/.*

RewriteCond %{REQUEST_URI} ^/tools

RewriteCond %{REMOTE_ADDR} !137\.18\.\d{1,3}\.\d{1,3}

RewriteCond %{REMOTE_ADDR} !143\.(228|231)\.\d{1,3}\.\d{1,3}

RewriteRule ^(.*) http://%{HTTP_HOST}/$1 [F]

 

#/tools redirect to https for internal networks

#/tools/**/files* no redirect

RewriteCond %{REQUEST_URI} !^/tools/.*/files/.*

RewriteCond %{REQUEST_URI} ^/tools

#RewriteCond %{REMOTE_ADDR} 137\.18\.\d{1,3}\.\d{1,3} [OR]

#RewriteCond %{REMOTE_ADDR} 143\.(228|231)\.\d{1,3}\.\d{1,3}

RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]

 

#**/admin/** available to internal networks

#**/admin/**/files/* no redirect

RewriteCond %{REQUEST_URI} !/admin/.*/files/.*

RewriteCond %{REQUEST_URI} (/admin$|/admin/)

#RewriteCond %{REMOTE_ADDR} 137\.18\.\d{1,3}\.\d{1,3} [OR]

#RewriteCond %{REMOTE_ADDR} 143\.(228|231)\.\d{1,3}\.\d{1,3}

RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]

 

#**/manage/** available to internal networks only

#RewriteCond %{REQUEST_URI} /manage(_main|_menu|_workspace|_access|_UndoForm|_o wner|_findForm|_top_frame)?($|/)

RewriteCond %{REQUEST_URI} /manage(_.*)?($|/)

RewriteCond %{REMOTE_ADDR} !137\.18\.\d{1,3}\.\d{1,3}

RewriteCond %{REMOTE_ADDR} !143\.(228|231)\.\d{1,3}\.\d{1,3}

RewriteRule ^(.*) http://%{HTTP_HOST}/$1 [F]

 

#**/manage/** redirect to https for internal networks

#RewriteCond %{REQUEST_URI} /manage(_main|_menu|_workspace|_access|_UndoForm|_o wner|_findForm|_top_frame)?($|/)

RewriteCond %{REQUEST_URI} /manage(_.*)?($|/)

#RewriteCond %{REMOTE_ADDR} 137\.18\.\d{1,3}\.\d{1,3} [OR]

#RewriteCond %{REMOTE_ADDR} 143\.(228|231)\.\d{1,3}\.\d{1,3}

RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]

 

#**/Control_Panel/** available to internal networks only

RewriteCond %{REQUEST_URI} /Control_Panel($|/)

RewriteCond %{REMOTE_ADDR} !137\.18\.\d{1,3}\.\d{1,3}

RewriteCond %{REMOTE_ADDR} !143\.(228|231)\.\d{1,3}\.\d{1,3}

RewriteRule ^(.*) http://%{HTTP_HOST}/$1 [F]

 

#**/Control_Panel/** redirect to https for internal networks

RewriteCond %{REQUEST_URI} /Control_Panel($|/)

#RewriteCond %{REMOTE_ADDR} 137\.18\.\d{1,3}\.\d{1,3} [OR]

#RewriteCond %{REMOTE_ADDR} 143\.(228|231)\.\d{1,3}\.\d{1,3}

RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [L,R]

 

RewriteCond %{REQUEST_URI} ^/zroot

RewriteCond %{REMOTE_ADDR} !137\.18\.\d{1,3}\.\d{1,3}

RewriteCond %{REMOTE_ADDR} !143\.(228|231)\.\d{1,3}\.\d{1,3}

RewriteRule ^(.*) http://%{HTTP_HOST}/$1 [F]

 

RewriteCond %{REQUEST_URI} ^/zroot

RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [L,R]

 

RewriteCond %{REQUEST_URI} !^/blog

RewriteCond %{REQUEST_URI} !^/cgi-bin

RewriteCond %{REQUEST_URI} !^/awstats

RewriteCond %{REQUEST_URI} !^/phpmyadmin

RewriteRule ^/(.*) http://127.0.0.1:1080/VirtualHostBase/http/%{HTTP_HOST}:80/impactzones.com/VirtualHostRoot/$1 [L,P]

 

</VirtualHost>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.