In my /var/www/ directory I have a lot of sub directories, one is learning/, which is where I place all my web projects that I'm following from different PHP or CSS/HTML books, another called projects/, for actualy projects I might undertake. I currently have port forwarding set up on my router but it alwasy points to /var/www/, never to an acutal project I might be running from the projects/ directory. Any idea on how I can set my apache to pull up a specific site under projects when a particular domian is entered in the URL? Thanks.
Jump to Post
Depends on the version of Apache but this should work in all of them. You can create a configuration file in /etc/httpd/conf for the site your trying to access when the URL is entered. Below is the configuration file I use to redirect http://<any domain on the server>/support/ to the …
All 3 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.