Nginx Config bitte mal drüberschauen
Posted: 2016-03-14 21:53
Hallo,
also ich bin am verzweifeln! Ich bekomme es gerade irgendwie nicht geschnallt, damit die Rewrites Permalinks für Wordpress greifen!
Hier mal meine Config:
Folgende Seite habe ich schon durch, aber irgendwie will es nicht!
http://wordpress.stackexchange.com/ques ... s-on-nginx
https://codex.wordpress.org/Nginx
Zweiter Link ist etwas komplizierter, aber ich will die nginx.conf eigentlich so einfach wie möglich halten und nicht alles includen!
Wäre Dankbar für Hilfe.
also ich bin am verzweifeln! Ich bekomme es gerade irgendwie nicht geschnallt, damit die Rewrites Permalinks für Wordpress greifen!
Hier mal meine Config:
Code: Select all
load_module modules/ngx_stream_module.so;
load_module modules/ngx_http_image_filter_module.so;
load_module modules/ngx_http_perl_module.so;
load_module modules/ngx_http_xslt_filter_module.so;
load_module modules/ngx_mail_module.so;
load_module modules/ngx_http_geoip_module.so;
# Define user that run nginx
user www;
worker_processes 2;
# Define error log
error_log /var/log/nginx/error.log info;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
# Define access log
access_log /var/log/nginx/access.log;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name phoenix-blog phoenixblog.de;
# Define web data
root /usr/local/www/phoenix;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off; log_not_found off; expires max;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
# Configuration for PHP-FPM
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include fastcgi_params;
}
}
}
http://wordpress.stackexchange.com/ques ... s-on-nginx
https://codex.wordpress.org/Nginx
Zweiter Link ist etwas komplizierter, aber ich will die nginx.conf eigentlich so einfach wie möglich halten und nicht alles includen!
Wäre Dankbar für Hilfe.