Wednesday 14 May 2003 12:58:33 pm
My server (Sun Cobalt RaQ 550) sets a bunch of vitualhost information automatically and I am having no luck editing the file to get the correct rewriterule settings for ezpublish to eleminate index.php and eventually produce nice urls. Below is a sample of the vhosts conf file which is included into the httpd.conf:
<VirtualHost 123.123.123.123>
ServerName www.jamesward.ca
ServerAlias jamesward.ca
ServerAdmin admin
DocumentRoot /home/.sites/28/site1/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST} !^216.138.213.110(:80)?$
RewriteCond %{HTTP_HOST} !^www.jamesward.ca(:80)?$ [NC]
RewriteRule ^/(.*) http://www.jamesward.ca/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/28/site1/users/$1/web/$3
# BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN. </VirtualHost>
I tried adding:
#eZ Publish Section
<Virtualhost 123.123.123.123>
<Directory /home/.sites/143/site1/web/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None </Directory>
RewriteEngine On RewriteRule !\.(gif|css|jpg|png|js)$ /home/.sites/143/site1/web/index.php
ServerAdmin root@localhost
DocumentRoot /home/.sites/143/site1/web/ezpublish/
ServerName 123.123.123.123 </VirtualHost> This has had no effect. Is the an httpd.conf guru out there that can help me get this right? I also tried replacing all the information in the vhosts conf file with just the ezpublush vhosts info but this caused the wrong site to appear. Namely the main site on the server instead of the virtual site. Thanks in advance for any help.
working at www.wardnet.com
blogging at www.jamesward.ca
|