I am using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-apache. Everything goes well until Step Five. I am able to load my example.com:8080 website, but when I try to load the PHP document (example.com:8080/info.php), I can’t find it! I only lost track of it once I switched my ports and what not, but I tried creating a new PHP document and I sitll can not find it!. Does anyone know how I can fix this? It says my requested URL was not found.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend!
It will be difficult to know the solution to this externally. The best way to go about it is to break down what is happening and why. If /info.php gives a 404 error, then the web server is not looking for it in the place that you think it should be. Follow your path in the configuration. What virtual host is set to point to what document root, and does that document root contain the file? Are you redirecting to another virtual host that then points to another document root that does not contain the file? Is the web server you are editing the configuration of actually listening on the relevant port?
It is a logic issue, and the specifics of that logic are doing to be very situational. Review your logic a few times and you may see an error in it.
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.