22 lines
442 B
Plaintext
Executable File
22 lines
442 B
Plaintext
Executable File
server {
|
|
listen 8080 default_server;
|
|
listen [::]:8080 default_server;
|
|
|
|
root /var/www/openmediacenter;
|
|
|
|
index index.html;
|
|
|
|
access_log /var/log/nginx/openmediacenter.access.log;
|
|
error_log /var/log/nginx/openmediacenter.error.log;
|
|
|
|
location / {
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include snippets/fastcgi-php.conf;
|
|
|
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
|
}
|
|
}
|