This commit is contained in:
Devin Smith 2016-01-03 13:24:51 -08:00
parent c2d9b096f8
commit 96a7f242a8

View File

@ -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;
}