Share » Forums » Install & configuration » Virtual hosting problem ......

Virtual hosting problem ... RewriteRule ! [urgent]

Virtual hosting problem ... RewriteRule ! [urgent]

Wednesday 08 February 2006 12:13:46 am - 13 replies

Author Message

Gabriel Ambuehl

Wednesday 08 February 2006 1:57:34 am

Take a clue from the ez setup and use

       Rewriterule ^/dontrewrite/path - [L]

Visit http://triligon.org

Selmah Maxim

Wednesday 08 February 2006 2:26:49 am

You mean .. if I have the file manager located in :

/var/www/html/fm

then

Rewriterule ^/var/www/html/fm - [L]

thats all ?!

Selmah Maxim

Wednesday 08 February 2006 2:28:56 am

Just tested it :

Rewriterule ^/var/www/html/fm - [L]

same :(

Selmah Maxim

Wednesday 08 February 2006 2:33:35 am

this works for me :

Rewriterule ^/fm/ - [L]

Selmah Maxim

Wednesday 08 February 2006 2:50:19 am

STRANGE ... befor worked .. and now ... same .. cann`t access fm folder ... ezpublish cames out !

Gabriel Ambuehl

Wednesday 08 February 2006 3:27:19 am

Did you restart Apache?

Visit http://triligon.org

Selmah Maxim

Wednesday 08 February 2006 3:35:01 am

yes .. just once worked ...

Selmah Maxim

Wednesday 08 February 2006 3:36:11 am

some times also giving me page not found !

Gabriel Ambuehl

Wednesday 08 February 2006 3:46:54 am

Try clearing your browsers cache then.

Visit http://triligon.org

Selmah Maxim

Wednesday 08 February 2006 3:51:50 am

Same ...

Also I had tested this :


              #THIS @@
               RewriteCond %{REQUEST_URI} !^/fm/ [OR]
               RewriteCond %{REQUEST_URI} !^/pma/ 




        Rewriterule ^/var/storage/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
        RewriteRule ^/favicon.ico - [L]
        RewriteRule ^/robots.txt - [L]
        # Uncomment the following lines when using popup style debug.
        # RewriteRule ^/var/cache/debug.html.* - [L]
        # RewriteRule ^/var/[^/]+/cache/debug.html.* - [L]
        RewriteRule .* /index.php

Selmah Maxim

Wednesday 08 February 2006 4:30:12 am

I think I found the error ..

for error.log of apache :

File does not exist: /var/www/html/ez/fm/FileManager/FileManager.cgi

the path must be /var/www/html/fm/FileManager/FileManager.cgi

its seaching the ezp folder .. how to step to the prev dir ?!

Selmah Maxim

Wednesday 08 February 2006 11:34:40 am

Any one know what the wrong ... from the server or from the rewiterule ?!?

Sebastian Picklum

Thursday 09 February 2006 2:37:59 am

The RewriteRule is correct.

Since you configured /var/www/html/ez to be your DocumentRoot, the RewriteRule doesn't work. Simply move the fm directory to /var/www/html/ez/fm and everything should be fine.

sp@php.net

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu