RewriteRule on VPS !

Hi ..

I have vps, and trying to do vh on it for ez publish, so I had add this to the http.conf :



Code:
NameVirtualHost 206.131.110.164
 
<VirtualHost 206.131.110.164>
    <Directory /var/www/html/ez>
        Options FollowSymLinks
        AllowOverride None
    </Directory>
 
    <IfModule mod_php4.c>
        php_admin_flag safe_mode Off
        php_admin_value register_globals    0
        php_value magic_quotes_gpc  0
        php_value magic_quotes_runtime  0
        php_value allow_call_time_pass_reference 0
    </IfModule>
 
 #ScriptAlias /cgi-bin/awstats /var/www/cgi-bin/awstats
 #Alias /awstats /var/www/html/awstats
 #ScriptAlias /mail /var/www/cgi-bin/openwebmail/openwebmail.pl
 #ScriptAlias /cgi-bin/openwebmail /var/www/cgi-bin/openwebmail
 #Alias /openwebmail /var/www/html/openwebmail
 #ScriptAlias /cgi-bin/FormMail.pl /var/www/cgi-bin/FormMail.pl 
 #Alias /phpMyAdmin /home/webadmin/mahaiconysportsclub.com/html/phpMyAdmin 
 
 
 #ScriptAlias /cgi-bin/fm /var/www/html/fm
 #Alias /fm /var/www/html/fm
 #Alias /pma /var/www/html/pma
 
 
    DirectoryIndex index.php
 
    <IfModule mod_rewrite.c>
        RewriteEngine On
 
  RewriteCond %{HTTP_HOST} ^fm\..*        
   RewriteRule ^(.*) /var/www/html/fm/FileManager/FileManager.cgi [L] 
 
  RewriteCond %{HTTP_HOST} ^pma\..*        
   RewriteRule ^(.*) /var/www/html/pma [L] 
 
        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
    </IfModule>
 
    DocumentRoot /var/www/html/ez
    ServerName www.mysite.com
    ServerAlias admin.mysite.com
</VirtualHost>

Now the problem ... I have some folders such phpmyadmin,filemanger,backups ... ineed to access it but what ever I type I get ezpblish .... how to make "RewriteRule" to access those folders ?!



Thanks in advanced.

 

 

 

 

Top