
YES!! Wash thats what i was looking for :D On Mon, Nov 19, 2012 at 5:10 PM, Odhiambo Washington <odhiambo@gmail.com>wrote:
On Mon, Nov 19, 2012 at 4:45 PM, geoffrey gitagia <ggitagia@gmail.com>wrote:
Hi am very green when it comes to Apache but here is my issue , i want to configure http://example.mysite.com to point to my server which is hosting the target website on localhost:8081 ... i know i have to do smthing on httpd conf ..not sure what or how :D..
Off the top of my head:
1. Talk to the DNS manager to create an A DNS record for example.mysite.com pointing to the IP address of your Apache server 2. Enable the *NameVirtualHost* directive in httpd.conf (it could be in an include file, so dig deeper!) - Just ensure you use name-based virtualhosts. 3. You will need to ensure that your Apache instance listens on port 8081 as well. Make an additional *Listen* rule . When you say localhost, then obviously this example.mysite.com is running on your Desktop, right? Because if it's not, then you will NOT be able to access it. 3. Create a virtual host with the name, i.e. <Virtualhost 127.0.0.1:8081> ServerName example.mysite.com DocumentRoot /some/path/to/your/files ErrorLog /some/path/to/example-error.log <Directory /some/path/to/your/files/> Order allow,deny Allow from all </Directory> </VirtualHost>
You may need to edit /etc/hosts to add an entry for example.mysite.commapped to 127.0.0.1
Restart Apache instace (apachectl graceful) and run tests. Look for clues on example-error.log
PS: This assumes a monolithic configuration of Apache, but with *include*(d) config files..
E&OE :-)
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler.
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- GG