server {
listen 80;
- listen [::]:80;
server_name localhost;
+ root /var/www/html;
- root /usr/share/nginx/html/juplo.de/dist;
+ index index.php;
- location /projects/ {
- alias /usr/share/nginx/html/projects/;
- expires 0;
- }
- location /hibernate-maven-plugin/ {
- alias /usr/share/nginx/html/hibernate-maven-plugin/;
- expires 0;
- }
- location /hibernate-maven-plugin-2.0.0/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/2.0.0/;
- expires 0;
- }
- location /hibernate4-maven-plugin-1.1.1/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.1.1/;
- expires 0;
- }
- location /hibernate4-maven-plugin-1.1.0/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.1.0/;
- expires 0;
- }
- location /hibernate4-maven-plugin-1.0.5/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.5/;
- expires 0;
- }
- location /hibernate4-maven-plugin-1.0.4/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.4/;
- expires 0;
- }
- location /hibernate4-maven-plugin-1.0.3/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.3/;
- expires 0;
- }
- location /hibernate4-maven-plugin-1.0.2/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.2/;
- expires 0;
- }
- location /hibernate4-maven-plugin-1.0.1/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0.1/;
- expires 0;
- }
- location /hibernate4-maven-plugin-1.0/ {
- alias /usr/share/nginx/html/projects/hibernate-maven-plugin/1.0/;
- expires 0;
+ location / {
+ try_files $uri $uri/ /index.php?$args;
}
- index index.php;
-
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
- location ~ \.php$ {
- try_files $uri =404
+ location ~ [^/]\.php(/|$) {
+ fastcgi_split_path_info ^(.+?\.php)(/.*)$;
+ if (!-f $document_root$fastcgi_script_name) {
+ return 404;
+ }
+
include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass wordpress:9000;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
+
fastcgi_index index.php;
}
}
-