35 lines
837 B
Plaintext
35 lines
837 B
Plaintext
|
|
# This is a default site configuration which will simply return 404, preventing
|
||
|
|
# chance access to any other virtualhost.
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 9000 default_server;
|
||
|
|
listen [::]:9000 default_server;
|
||
|
|
|
||
|
|
# server_name proxima.goliath.hu;
|
||
|
|
|
||
|
|
access_log /app/log/nginx-access.log;
|
||
|
|
error_log /app/log/nginx-error.log error;
|
||
|
|
|
||
|
|
|
||
|
|
location ~ \.php$ {
|
||
|
|
root /app/Backend/public/;
|
||
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||
|
|
fastcgi_pass unix:/app/run/php-fpm.sock;
|
||
|
|
fastcgi_index index.php;
|
||
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
|
|
||
|
|
include fastcgi.conf;
|
||
|
|
}
|
||
|
|
|
||
|
|
location / {
|
||
|
|
root /app/Backend/public/;
|
||
|
|
try_files $uri $uri/ /index.php?$args;
|
||
|
|
index index.php index.html index.htm;
|
||
|
|
}
|
||
|
|
|
||
|
|
# You may need this to prevent return 404 recursion.
|
||
|
|
location = /404.html {
|
||
|
|
internal;
|
||
|
|
}
|
||
|
|
}
|