Y
Y
Youri_M4U2011-01-06 01:22:56
Nginx
Youri_M4U, 2011-01-06 01:22:56

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/>

In the virtual host settings is:
Options FollowSymLinks
AllowOverride All
I hope I managed to describe the problem. Can you suggest how to solve it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonich, 2011-01-06
@Dimonich

Who is giving 404 to apache or nginx? What's in the logs? mod_rewrite enabled?

A
akrus, 2011-01-06
@akrus

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 :)

M
Mark B1, 2014-07-18
@MarkB1

Faced a similar problem. Treat like this:
Turn on mod_rewrite (execute in the terminal):
then go to default:
and change it
to
Reload Apache:
Should work.
Smoke Google if it doesn't work right away https://www.google.ru/?gws_rd=cr&ei=hC5KUsOaNKfx4Q...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question