Forum

css and js files are not loading in browser

David
20 March 2018, 09:39
Hi Hugo,
I am testing web app with hiawatha server and it is working completely fine but when i browsed my site in ubuntu firefox and server is not loading css and js files i opened even hiawatha's home page in the same browser it is same with it as well. I kept uploadspeed to default and i am using https. I have tested my app in mac os in chrome, safari and mozilla and here its working perfectly alright. What might be the problem ?
Thanks
Joe Schmoe
20 March 2018, 15:06
Can you post your configuration?
David
21 March 2018, 02:43
# General Settings
ServerId = www-data
ServerString = none
ConnectionsTotal = 3000
ConnectionsPerIP = 100
SystemLogfile = /usr/local/var/log/hiawatha/system.log
GarbageLogfile = /usr/local/var/log/hiawatha/garbage.log
FastCGIserver {
FastCGIid = PHP7
ConnectTo = /run/php/php7.0-fpm.sock
Extension = php
}
UrlToolkit {
ToolkitID = fbd
Do DenyAccess
}
UrlToolkit {
ToolkitID = extRmr
Match (\.css)|(\.js)|(\.ttf)|(\.woff)|(\.svg)|(\.png) Exit
Match (\.php)|(\.py)|(\.pyp)|(\.html)|(\.jsp)|(\.java) DenyAccess
Match (\/)(.*)(\/)$ DenyAccess
Match (\/[a-zA-Z]*[0-9]{2})$ Rewrite $1.php Continue
RequestURI notfound call fbd
}
Joe Schmoe
21 March 2018, 03:35
Match (\.css)|(\.js)|(\.ttf)|(\.woff)|(\.svg)|(\.png) Exit


Use Return instead of Exit.
David
21 March 2018, 16:02
Checked it but still same might be browser problem but its unto date and hiawatha's main web page https://www.hiawatha-webserver.org is also not loading css and js files. Browser Mozilla Ubuntu 17.
Thanks
This topic has been closed.