Files
portal-api/docker/nginx.conf
T
2025-07-24 16:18:27 +07:00

62 lines
1.4 KiB
Nginx Configuration File

worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
root /var/www/public;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass app:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}
server {
listen 80;
server_name portal_new.org;
root /var/www/public; # Nếu bạn muốn devro.org trỏ đến cùng project, giữ nguyên đường dẫn này
# Nếu devro.org là project khác, thay đường dẫn tương ứng, ví dụ /var/www/devro/public
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass app:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}
}