This commit is contained in:
19
nginx.conf
19
nginx.conf
@@ -1,15 +1,24 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name docs.aetoskia.com;
|
||||
server_name _; # default catch-all
|
||||
|
||||
# Root for the main landing page
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
# Serve the index page by default
|
||||
index index.html;
|
||||
|
||||
# Explicit location for /mongo-ops/
|
||||
location /mongo-ops/ {
|
||||
alias /srv/docs/mongo-ops/site/;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
# Optional: main landing page
|
||||
# Optional: serve static assets (CSS, JS, images)
|
||||
location / {
|
||||
alias /srv/docs/_index/;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user