server {
listen 80;
server_name proyecto.test *.proyecto.test; #Dirección de la página
root "C:/laragon/www/clases-web/Proyectos/Pagina personal/public/"; #La dirección root del proyecto
location ~ ^/admin/(.*)$ {
index admin.php;
try_files $uri $uri/ /admin.php?page=$1&$is_args$args; # try_files will need to be relative to root
}
location / {
index public.php;
try_files $uri $uri/ /public.php$is_args$args;
autoindex on;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass php_upstream;
#fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
rewrite ^/api/([^/]+)/?$ /?api&method=$1 last;
charset utf-8;
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location ~ /\.ht {
deny all;
}
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎