Hi,
I am fairly new to this, so I probably missed something obvious.
I have a ubuntu 12.4 apache2 setup. I have two sites running, they are working fine. But when I try to set up a third one, the second site gets redirected to the third. If I set up a fourth it gets redirected to the last. My vhost config are all like:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/generationalbator/public_html
ServerName www.generationalbator.be
Serveralias generationalbator.be
Serveralias www.generationalbator.be
ErrorLog /var/www/generationalbator/logs/error.log
Loglevel warn
CustomLog /var/www/generationalbator/logs/access.log combined
<Directory /var/www/generationalbator/public_html>
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Any ideas?
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,
are the virtual hosts stored in separate files in the sites-available directory? Have you run a2ensite on all configs?
Are you able to post all three virtual host files?
solved. I put them in one file, ran a2ensite and it functions!
Glad it’s solved! Having separate files is not an issue, that’s how I do it, I’m thinking maybe one of the configs wasn’t enabled? Never mind though!
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.