Hello everybody, so basically I have two separate domains, that I’m trying to run on the same droplet, but have both domains navigate to separate root folders, being two separate websites. I’ve followed this guide to the LETTER: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
My sites available folder has the following files: 000-default.conf , cybergamegear.com.conf , default-ssl.conf , and delcontedesigns.com.conf. So the two domains I’m trying to set up are DelconteDesigns.com (which works) and CyberGameGear.com (which navigates to DelconteDesigns.com currently for some reason, rather than the root folder I want it to.
Here is what my cybergamegear.com.conf looks like: <VirtualHost *:80> ServerAdmin jonathandelcontedesigns@gmail.com ServerName cybergamegear.com ServerAlias www.cybergamegear.com DocumentRoot /var/www/cybergamegear.com/public_html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
The only thing I can imagine is that my 000-default.conf is overriding it? Here is what that file looks like:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory /var/www/html>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Do I need to delete this file?
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!
@jnugh hm… do you have any idea why disabling nginx would change the way my css/js folders would work? I’m not sure how to fix that
@jnugh AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message. VirtualHost configuration: *:80 is a NameVirtualHost default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1) port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1) port 80 namevhost cybergamegear.com (etc/apache2/sites-enabled/cybergamegear.com.conf:1) alias www.cybergamegear.com port 80 namevhost delcontedesigns.com (/etc/apache2/sites-enabled/delcontedesigns.com.conf:1) alias www.delcontedesigns.com ServerRoot: “/etc/apache2” Main DocumentRoot “/var/www/html” Main ErrorLog: “/var/log/apache2/error.log” Mutex watchdog-callback: using_defaults Mutex rewrite-map: “using_defaults Mutex default: dir=”/var/lock/apache2" mechanism=fcntl Mutex mpm-accept: using_defaults PidFile: “/var/run/apache2/apache2.pid” Define: DUMP_VHOSTS Define: DUMP_RUN_CFG User: name=“www-data” id=33 Group: name=www-data" id=33
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.