Directory Index + Apache 2.4 with nginx as reverse proxy (php-fpm)

amator

Verified User
Joined
Jul 19, 2008
Messages
30
Hi,

I just installed new server with CentOS 6.5 (64 bit) and Apache 2.4 + nginx as proxy + 5.3 (php-fpm).
I'm getting error with one domain after moving from old server.

I found this in .htaccess, tryied to hash it, but still getting error.
Code:
DirectoryIndex portal.php

Here is log output:

[Thu Jun 26 14:02:42.214065 2014] [proxy_fcgi:error] [pid 3925:tid 139978789025536] [client xx.xx.xx.xx:50461] AH01071: Got error 'Primary script unknown\n', referer: http://xxxxxxx/

How can I fix this?
 
Last edited:
Better.

When I hash DirectoryIndex portal.php in .htaccess I can login to admin backend of mybb.
But still frontend not working. Apache logs is empty :/

When I unhash DirectoryIndex portal.php in htaccess I'm getting this in error log.
[Thu Jun 26 21:29:12.102153 2014] [autoindex:error] [pid 25689:tid 140244921800448] [client xx.xx.xx.xx:47231] AH01276: Cannot serve directory /home/user/domains/domain.com/public_html/admin/: No matching DirectoryIndex (portal.php) found, and server-generated directory index forbidden by Options directive

edit: found next problem: When I try access roundcube from any domain I got:
CONFIGURATION ERROR

config.inc.php was not found.
Please read the INSTALL instructions!

Works fine wjen I try acccess from server hostname :/

edit: I change fastcgi to suphp. Roundcube works fine now on domains alias.
Still getting error with mybb instalation with directory index: portal.php

[Thu Jun 26 14:02:42.214065 2014] [proxy_fcgi:error] [pid 3925:tid 139978789025536] [client xx.xx.xx.xx:50461] AH01071: Got error 'Primary script unknown\n', referer: http://xxxxxxx/
 
Last edited:
I would need to know the results with mod_php and php-fastcgi. Otherwise I would need to get logins to the affected system to check the problem.
 
Send message with server detalis.

On fastcgi roundcube not working fine when accessing form domain.com.roundcube (getting error:
CONFIGURATION ERROR

config.inc.php was not found.
Please read the INSTALL instructions!
)

Works fine when accessing from server hostname.
Not tested on mod_php
 
Back
Top