Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
363 views
in Technique[技术] by (71.8m points)

.htaccess - External access to a vache with apache redirects to localhost

I added apache to a vps and installed wordpress on it, when I access it locally (via the vps) I have no problems, when I try to access it from my computer by typing the public IP of the vps, I can also access it, but the css, javascript, (everything which is external on the page) is not loaded. I noticed opening dev tools and going to the network tab that what was happening was that these external files were being redirected to localhost. For example, instead of searching for the css file by: http://(ip_public)/(css_directory) he searched for: http://localhost/(css_directory). How can I fix this?

I wish you all a good end of the year! ???


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...