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.
lewashby
56
Junior Poster
Recommended Answers
Jump to PostDepends 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
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.