

`server {
listen 80;
listen 443 ssl;
server_name innospherre.com;
root /www/wwwroot/innospherre.com/build; # Main root for the website
index index.html index.php index.htm;
# SSL configuration
ssl_certificate /www/server/panel/vhost/cert/innospherre.com/fullchain.pem;
ssl_certificate_key /www/server/panel/vhost/cert/innospherre.com/privkey.pem;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
# Serve the main website's index.html under the root
location / {
try_files $uri $uri/ /index.html; # Serve main index.html for root
}
# Serve the login page under /login
location /login/ {
root /www/wwwroot/innospherre.com; # Root is the main website directory
try_files $uri $uri/ /login/index.html; # Serve /login/index.html
}
# Serve CSS, JS, and other static files under /login/css/
Serve CSS and other static files
Serve static CSS and JS files under /login
location /login/css/ {
alias /www/wwwroot/innospherre.com/login/css/; # Correct path to the css directory
try_files $uri =404; # Return 404 if the file isn't found
}
location /login/js/ {
root /www/wwwroot/innospherre.com; # Correct root for login
try_files $uri =404;
access_log off;
expires 30d;
}
# Additional static files (images, etc.)
location ~* \.(css|js|jpg|jpeg|png|gif|ico)$ {
try_files $uri =404;
access_log off;
expires max;
}
# Logs
access_log /www/wwwlogs/innospherre.com.log;
error_log /www/wwwlogs/innospherre.com.error.log;
}
`