Hello,
I’m running centos 7 and apache 2.4 with nginx, we have configure for run:
apache no_ssl: 8080
apache ssl: 8081
invoiceplane 1.5.3
this is my root path of the domain host:
/home/username/www
then i have installed into:
/home/username/www/invoices
when use apache work without problems but now i’m configuring nginx, this is my apache virtualhost:
<VirtualHost *:8081>
ServerAdmin mail@internal.com
ServerName internal.priv
ServerAlias www.internal.priv
DirectoryIndex index.htm index.html index.php
DocumentRoot /home/username/www/
ErrorLog logs/internal.priv_error_log
CustomLog logs/internal.priv_access_log combined
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/2017/internal.priv.crt
SSLCertificateKeyFile /etc/pki/tls/certs/2017/internal.priv.key
<directory /home/username/www>
Options FollowSymLinks
AllowOverride All
Require all granted
</directory>
This is my nginx virtualhost
server {
listen 80;
server_name internal.priv;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443;
root /home/username/www/;
index index.php index.html index.htm;
server_name internal.priv;
ssl on;
ssl_certificate /etc/pki/tls/certs/2017/internal.priv.crt;
ssl_certificate_key /etc/pki/tls/certs/2017/internal.priv.key;
ssl_session_timeout 5m;
ssl_protocols SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+EXP;
ssl_prefer_server_ciphers on;
location / {
try_files $uri $uri/ index.php;
}
location ~ \.php$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_pass https://127.0.0.1:8081;
}
location ~ /\.ht {
deny all;
}
}
When login to web browers show this error:
Bad Request
Your browser sent a request that this server could not understand.
Can somebody helpme?, thank you advance.