I installed both Nginx ( port 80 ) and Apache ( port 8080 ). But for some domains, i just want to use Apache ( port 8080). Of course, i can not change Apache to port 80, How make visitor always access http://mywebsite.com:8080 instead of http://mywebsite.com ?
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!
You can just proxy ALL of the requests from nginx to apache, you can’t have multiple programs listening on the same port. <br> <br><pre>server { <br>server_name mywebsite.com; <br> <br>location / { <br> [… proxy_pass to apache …] <br>} <br></pre>
Check out <a href=“http://stackoverflow.com/questions/8541182/apache-redirect-to-another-port”>Apache redirect to another port | Stack Overflow</a>
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.