hai ,
i have just setup my lan with an apache with namebased virtual hosting .the
steps are,
1:-assuming your website is called xxx.linux.com
2:-your domain name is called linux.com3
3:-type linuxconf in your console and in the screen click on
servertasks,dns,config and create a domain called linux.com,give reverse
mapping .
4:-come then click on add/edit and add to the domain another computer name
calle xxx (the name for your website).give the CNAME column as the real name
of your computer and do not give any ipaddresses.
4:-from the console open /etc/httpd/conf/httpd.conf and give the following
entries


NameVirtualHost <The ip addrss of the computer >

<VirtualHost  {ip address same as above}>
ServerName xxx.linux.com
DocumentRoot /home/httpd/html
DirectoryIndex {the firstpage of your website eg:-main.html or index.html}  
</VirtualHost>

p.s:- place the directory containing your website in /home/httpd/html

5:-restart named and httpd as follows


/etc/rc.d/init.d/named restart
/etc/rc.d/init.d/httpd restart
6:-from netscape try to connect and if unsuccessful kindly mail me your
/var/named/<domainname>file and your httpd.conf file.

thanks
anup













"SAURABH MITTAL(97D07023)" wrote:

> Hi all,
>
> My computer is on a LAN and connects to the internet through a
> proxy-server.. now, i want to configure apache on my computer so that i
> could use it as a web-server serving requests from other computers on the
> LAN.. i have read through the doc for httpd.conf file and other
> configuration files.. but i am just unable to get the thing working..
>
> please help..
> thanks in advance,
> saurabh
>
> --------------------------------------------------------------------
> The Linux India Mailing List Archives are now available.  Please search
> the archive at http://lists.linux-india.org/ before posting your question
> to avoid repetition and save bandwidth.


--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

--------------------------------------------------------------------------
LI is all for free speech, but this list was created for a purpose --
to help popularise Linux in India. If your messages are counterproductive
to that purpose, your privileges to submit messages can and will be revoked.

Reply via email to