“Installieren Sie Laravel mit WordPress nginx” Code-Antworten

Laravel nginx

# If you are using Nginx, the following directive in your site 
# configuration will direct all requests to the index.php 
# front controller:

location / {
    try_files $uri $uri/ /index.php?$query_string;
}
TheDutchScorpion

Installieren Sie Laravel mit WordPress nginx

...
error_log /Users/myuser/code/myproject/storage/logs/nginx_error.log debug;

 # Point index to the Laravel front controller.
index           index.php;

location /blog/ {
    try_files $uri $uri/ @wordpress;
}

location @wordpress {
    rewrite /blog/ /blog/index.php;
}

location ^/blog/index.php(/.*)?$ {
    fastcgi_split_path_info ^(/blog/index.php)(/.*)$;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
    fastcgi_param  PATH_INFO $fastcgi_path_info;
    include fastcgi_params;
}

location / {
    try_files $uri $uri/ /index.php$is_args$args;
}
...
Romark cacho

Ähnliche Antworten wie “Installieren Sie Laravel mit WordPress nginx”

Fragen ähnlich wie “Installieren Sie Laravel mit WordPress nginx”

Weitere verwandte Antworten zu “Installieren Sie Laravel mit WordPress nginx” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen