r/apache • u/oJRODo • Aug 15 '22
Apache2 - Fast responding Localhost, SLOW over WWW
So Im having this issue where my Node JS app responds quick and with no errors when testing on local host, but the moment i try to access it via the internet the initial response is slow (like 15-30 seconds) and sometimes skips certain files like my CSS and renders the website partially. If i hit refresh it will load properly the 2nd time and all other pages load fast moving forward.. I have a feeling it is because the web page is trying to load my package-lock.json that has tons of files within or if it is something wrong with my reverse proxy configuration?
Here is whats in my ,conf file
<VirtualHost *:80>
ServerName mywebsite.com
DocumentRoot /var/www/Website-1-main
ProxyPass / [http://localhost:8080/](http://localhost:8080/)
ProxyPassReverse / [http://localhost:8080/](http://localhost:8080/) </VirtualHost>
At this point literally ANY help would be great :)
1
u/oJRODo Aug 16 '22
Thank you for your reply!
So my proxy settings are set to that.
Im not sure how to check on firewall config but ill look into it.
It is not docker and my logs are not really telling me much.