Re: Help setting up web server.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Fr, den 10.12.2004 schrieb Steven J. Brown um 6:13:

> Please help!

Please don't send HTML formatted list mails and especially not pictures
included.

> I need assistance setting up my PC as a web server.  It seems like it
> should be simple, but I just can't get it working.  
> 
> I have a Belkin router.
> 192.168.2.1 brings up the router's browser-based setup where I can
> find the WAN IP address (the address I would use to access my web
> server from the outside, I assume -- from inside, this also brings up
> the router's setup).  /sbin/ifconfig reports my PC's IP address as
> 192.168.2.4.  So...
> 
> ...in the 'Virtual Servers' section of the router setup,  I've got the
> following:
> - enabled is checked.
> - description is 'Web Server (HTTP)'
> - inbound port 80 to 80
> - type 'TCP' (other choice is 'UDP')
> - private IP address is 192.168.2.4
> - private port 80 to 80

If this means the settings inside the router menu for portforwarding,
then this seems correct.

> ...and in /etc/httpd/conf/httpd.conf, I've got the following (in order
> found in file):
> ...
> Listen 80
> ...
> ServerName 192.168.2.4:80

ServerName is a FQDN, please see the Apache documentation:

http://httpd.apache.org/docs-2.0/mod/core.html#servername

Leave it commented. Make sure /etc/hosts contains a long and a short
name for your host IP 192.168.2.4.

All the following VHost setup not needed. From default setting Apache
already listens on the hosts IP address at port 80. Your VHost config
changes/adds nothing. Even the DocumentRoot is the same. So remove that
part.

> NameVirtualHost *:80
> ...
> <VirtualHost *:80>
> ServerAdmin sbrown3@xxxxxxxxxxxxx
> DocumentRoot /var/www/html
> ServerName 192.168.2.4  (appears earlier in the file -- do I need this
> again?  with or without :80?  I've also tried 'localhost' as reported
> by dnsdomainname.)
> </VirtualHost>

When testing the internal, portforwarded webserver make sure that the
test request comes from outside. As recently discussed here on the list,
at least some SOHO hardware routers behave not as expected when
connecting from a LAN port connection to the WAN IP address.

> Steven J. Brown

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.9-1.6_FC2smp 
Serendipity 06:35:51 up 1:16, 16 users, 0.64, 0.81, 0.92 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux