Answer the question
In order to leave comments, you need to log in
Problem with InstantCMS and Apache+Nginx?
Colleagues, please tell me how to solve the problem:
I want to see InstantCMS. Installed on a server running on a bunch of Apache and Nginx.
After installation, only the main page is shown, and when you try to follow any link, a 404 error message is displayed.
I'm assuming it's a link rewrite issue, i.e. mod_rewrite.
The .htaccess file contains the following settings:
AddDefaultCharset windows-1251<br/>
<br/>
RewriteEngine On<br/>
RewriteBase /<br/>
RewriteRule ^.htaccess$ - [F]<br/>
<br/>
RewriteRule ^load/url=(.+)$ /index.php?uri=files&do=download&fileurl=$1<br/>
RewriteRule ^go/url=(.+)$ /index.php?uri=files&do=redirect&url=$1<br/>
<br/>
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|ico|gif|png|css|xml|js|pl|txt)$ [NC]<br/>
RewriteCond %{REQUEST_URI} !^/go/url=<br/>
RewriteCond %{REQUEST_URI} !^/load/url=<br/>
RewriteCond %{REQUEST_FILENAME} !-f<br/>
RewriteCond %{REQUEST_FILENAME} !-d<br/>
<br/>
RewriteRule ^(.*)$ /index.php?uri=$1 [L]<br/>
Answer the question
In order to leave comments, you need to log in
Who is giving 404 to apache or nginx? What's in the logs? mod_rewrite enabled?
does apache work fine without nginx? :) otherwise the problem is written “with a bunch”, but apparently it is in Apache.
turn on RewriteLog, see how it works and where it works. Post it here if needed :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question