fixes #7308
This commit is contained in:
parent
c2d9b096f8
commit
96a7f242a8
@ -8,6 +8,24 @@ server {
|
||||
# Make site accessible from http://localhost/
|
||||
server_name localhost;
|
||||
|
||||
location /assets/css/bundle.css {
|
||||
if ($host = cockpit.la) {
|
||||
rewrite ^/(.*)$ /assets/cockpit/css/bundle.css break;
|
||||
}
|
||||
if ($host != cockpit.la) {
|
||||
rewrite ^/(.*)$ /assets/css/bundle.css break;
|
||||
}
|
||||
}
|
||||
|
||||
location /assets/js/bundle.js {
|
||||
if ($host = cockpit.la) {
|
||||
rewrite ^/(.*)$ /assets/cockpit/js/bundle.js break;
|
||||
}
|
||||
if ($host != cockpit.la) {
|
||||
rewrite ^/(.*)$ /assets/js/bundle.js break;
|
||||
}
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user