By fmessi
Hi, I would like to setup a Testing / Production environment on my LAMP Droplet.
Basically I have currently two folders under /var/www, let’s say:
/var/www/siteA/ --> used for production
/var/www/siteB/ --> used for development
my goal is to be able to access the two sites like this: SiteA: http://my.ip.address/siteA SiteB: http://my.ip.address/siteB
but currently whenever I try to access siteB I always get redirected to siteA
How to setup Apache to achieve this? Thanks in advance!
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!
Hi, Apache virtual hosts are a good solution to hosting two sites at different URLs, and this tutorial can help you get it setup. https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
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.