Ciao allora ho risolto disabilitando nginx, ma ho risolto parzialmente,
ora mi trovo in questa situazione:
se accedo al mio sito tramite:
www.mydomain.com/app.phpriesco a far girare tutte le rotte
mentre se accedo tramite
www.mydomain.comvisualizzo solo la home page e le rotte non vanno e mi danno 404 not found, inoltre non ho nessuna traccia nei log, sia di apache che dell'applicazione, in prod.log nel folder logs di app genera il log solo nel momento in cui accedo alla home page mentre come mi sposto in un'altra rotta mi da l'errore in oggetto ma niente log.
Ho pensato potesse essere il mod_rewrite ma se da console lancio httpd -M trovo che è presente:
rewrite_module (shared)
Il mio httpd.conf è:
ServerRoot "/etc/httpd"
Listen 80
LoadModule rewrite_module modules/mod_rewrite.so
Include conf.modules.d/*.conf
User myuser
Group psacln
ServerName
www.mydomain.com:80<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "/var/www/vhosts/
mydomain.com/httpdocs/web"
<Directory "/var/www">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "logs/error_log"
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "logs/access_log" combined
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</IfModule>
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
</IfModule>
<IfModule mime_magic_module>
MIMEMagicFile conf/magic
</IfModule>
EnableSendfile on
IncludeOptional conf.d/*.conf
GracefulShutDownTimeout 3
AddOutputFilter INCLUDES .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
<VirtualHost *:80>
CustomLog /var/log/httpd/mydomain.com-access.log combined
ErrorLog /var/log/httpd/mydomain.com-error.log
ServerName
mydomain.com ServerAlias
www.mydomain.com DocumentRoot /var/www/vhosts/
mydomain.com/httpdocs/web <Directory /var/www/vhosts/
mydomain.com/httpdocs/web>
DirectoryIndex app.php
AllowOverride None
Order Allow,Deny
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
# RedirectMatch permanent ^/app\.php/(.*) /$1
</Directory>
</VirtualHost>
Dove sto sbagliando?
Grazie come sempre.