Report this

What is the reason for this report?

Could I host different projects with different languages on the same droplet using different routes of the same domain?

Posted on August 14, 2018

That’s what I was trying to do (using Apache 16) I have two enabled config files.

<VirtualHost *:80>
    ServerAdmin admin@something.com
    ServerName mydomain.com/project_1
    ServerAlias www.mydomain.com/project_1
    DocumentRoot /var/www/project1/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

And the other one (for an entirely different project) would be:

<VirtualHost *:80>
    ServerAdmin admin@something.com
    ServerName mydomain.com/project_2
    ServerAlias www.mydomain.com/project_2
    DocumentRoot /var/www/project2/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

I’ve tried it and it didn’t really work.

Do I need to change my domain droplet records to make it work? Because there’s no option for routes there…

I assume I did something stupid and that this question is very unprofessional, but still, I would love to get some help please :)

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.