Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID
Advertise on LowEndTalk.com

In this Discussion

Nginx Config Yii2 in root and Wordpress in subdirectory

Nginx Config Yii2 in root and Wordpress in subdirectory

HybridHybrid Member
edited April 20 in Help

Hey,

I have a website using Yii2 framework, and in a subdirectory called "b" I have a wordpress installation, Yii2 is working fine, but the wordpress installation is not

I'm also using cloudflare's SSL (Full SSL)

This is my configuration file:

server { listen 443 ssl http2; server_name www.mydomain.com; ssl_dhparam /usr/local/nginx/conf/ssl/mydomain.com/dhparam.pem; ssl_certificate /usr/local/nginx/conf/ssl/mydomain.com/mydomain.com.crt; ssl_certificate_key /usr/local/nginx/conf/ssl/mydomain.com/mydomain.com.key; include /usr/local/nginx/conf/ssl_include.conf; # mozilla recommended ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA:!CAMELLIA:!DES-CBC3-SHA; ssl_prefer_server_ciphers on; ssl_buffer_size 1400; ssl_session_tickets on; access_log /home/nginx/domains/mydomain.com/log/access.log combined buffer=256k flush=60m; error_log /home/nginx/domains/mydomain.com/log/error.log; root /home/nginx/domains/mydomain.com/public; # prevent access to ./directories and files location ~ (?:^|/). { deny all; } location / { try_files $uri $uri/ /index.php$is_args$args; } location /b { index index.php index.html index.htm; try_files $uri $uri/ /index.php?q=$uri&$args; } include /usr/local/nginx/conf/staticfiles.conf; include /usr/local/nginx/conf/php.conf; include /usr/local/nginx/conf/drop.conf; #include /usr/local/nginx/conf/errorpage.conf; include /usr/local/nginx/conf/vts_server.conf; }

Any idea?

Comments

Sign In or Register to comment.