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

RE: [cobalt-users] Lost web interface w/ raq4



> When I do this I get the following:
> # /etc/rc.d/init.d/httpd restart
> Shutting down Web Service:
> Setting up Web Service: Syntax error on line 7 of 
> /etc/httpd/conf/httpd.conf:
> Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a 
> module not included in the server configuration
> /usr/sbin/httpd
> 
> Line 7 says RewriteEngine   On
> 
> So any advice before a restore? Any log files I should look at for 
> knowing why dhcp stops nightly?
> 

Have you compared httpd.conf to the master file? Maybe something isn't
getting loaded before that.
Are you using an include.conf file loaded before your main site? My
first site looks like:

NameVirtualHost 216.xx.xxx.xx
<VirtualHost 216.xx.xxx.xx>
ServerName host.domain.com
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^216.xx.xxx.xx(:80)?$
RewriteCond %{HTTP_HOST}                !^host.domain.com(:80)?$
RewriteRule ^/(.*)                      http://host.domain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
</VirtualHost>

-- 
Dan Kriwitsky

Please reply onlist only