I want my subdomain to go to another part of my website and i dont know how! VHosts

March 2, 2017 171 views
Apache

I have por example holahola.com
and i want a hello.holahola.com to go to holahola.com/hi
there is some place i heard that says things like virtualhost:80
web
web
virtualhost:80
but i i think i dont have it!

i already searched on etc/httpd/conf/conf.d
And i have some things but not what i think i wwant to make the changes.

1 Answer
The Apache web server is the most popular way to serve web content on the internet. Apache has the ability to serve multiple domains from a single server by using a mechanism called "virtual hosts". If a virtual host is configured correctly for each domain, the web server can correctly route traffic to the appropriate files based on the domain name requested. In this guide, we'll demonstrate how to configure Apache virtual hosts on an Ubuntu 16.04 server.
Have another answer? Share your knowledge.