-
Apache is cranky.
Hello,
I have installed the latest knoppix to my hdd and is trying to set up apache.
I have apache installed, and as far as i know i dont have any firewall installed. (unless there was one installed automatically when i installed knoppix)
I have searched the forums but was unable to find any topic that matches my problem. And my problem is that i can connect to apache with 127.0.0.1 but not with my IP i got from my ISP. My friends cant connect to it either.
My ISP dont have a firewall on me either.
I have made sure that apache is listening to port 80. It does when i use 127.0.0.1 anyway.
I have been using Linux for a long time, but i am new to this networking stuff. I could really need some help.
I think the files host.allow and host.deny could have a part in this, but i dont know how to set them up properly. Here is how they look right now:
hosts.allow
Code:
ALL: 127.0.0.1 LOCAL : ALLOW
httpd: ALL
hosts.deny only contains comments
Is there something wrong with those? And is there any other files i have to edit to make apache listen to other IP's than the localhost?
And is there a firewall installed default, and how do i disable/edit it?
Thankfull for any help.
-
I think i am near the solution of the problem.
I installed firestarter so it could help me with the rules and stuff. And it looks like it works as it should.
And i think there is some problems with my network settings.
The thing is that i got 2 IP's from my ISP. One is between me and the ISP and the other is the public one.
When i run netcardconfig i enter the first one (starting with 10.xxxx) as the first IP and then i enter the other one as broadcast.
Is this the right way of doing it? I dont have DHCP or anything nice and easy like that.
I tried to swap the IP's and then i could access apache with my second IP, but then the rest of the internet was nowhere to find.
If i run nmap on 127.0.0.1 it tells me port 80 is open, but if i run nmap on my second IP it just says that the host is down.
And if i run nmap with -P0 it says that all ports was closed.
Got any ideas?
-
I think you could try
http://xxx.xxx.xxx.xxx/
replace the x's with your ip
-
...But ofcourse that is what i have tried.
And all i get is "connection refused"
I can only access my site with http://127.0.0.1
I am sorry if i didn't make myself clear enough.
-
rm /etc/hosts.*
delete both the files
/etc/hosts.allow
/etc/hosts.deny
i hope you havent modified apache config files. if you did go back to their original state if you made a backup of the config files.
i think this should work.
-
I renamed the hosts.* files, but it didnt help.
The only thing i changed in the apache file was ServerAdmin and ServerName.
But if i comment them out, like it was from the beginning, i still cant connect to apache with my external IP.
Only with 127.0.0.1
-
Please could you send some details on your system.
operating system
isp (internet service provider)
ipconfig (results)
conection type (dial up, broadband etc)
ps
On a most operating systems, you should not have to modify any config files in order to get apache to startup correctly.It should run right out of the box.
-
Have you told Apache that it should have that IP address?
Do you have a dynamic address?? - Cos Apache by default assumes that it's IP address is 127.0.0.1
Check the httpd.conf file, normally it will say something about "assuming ServerName 127.0.0.1"
If you have a hostname, you can use:
ServerName dhcp19.wdf.intercomponentware.com
Else, I assume you will have to change it every time you dial-up =)
Hope thats got it...
-
Senior Member
registered user
Lot's of ISP's block port 80. They don't want people running web servers from their home machines. Do you know if your ISP is doing this? You might want to use nmap to scan your IP and see which ports are blocked.
Similar Threads
-
By gonzalezmfrank in forum General Support
Replies: 0
Last Post: 06-09-2005, 05:22 PM
-
By raduen in forum General Support
Replies: 9
Last Post: 03-28-2005, 02:31 PM
-
By jpiranha in forum Networking
Replies: 2
Last Post: 10-04-2004, 01:57 AM
-
By jpiranha in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 09-28-2004, 11:49 PM
-
By Athauglas in forum General Support
Replies: 21
Last Post: 03-12-2004, 03:03 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch
$39.99

NETGEAR 5-Port Gigabit Ethernet Unmanaged Switch (Gs305) - Desktop Quiet Fanless
$22.00

10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W
$39.99

~NIB~ Netgear GS728TPP-300NAS V3 24 PORT GIGABIT POE MNGD W. 4 SFP PORTS
$349.95

TP-Link TL-SG105 5-Port Gigabit Ethernet Unmanaged Metal Desktop Network Switch
$19.99

TP-Link Omada SG3428 24-Port Gigabit L2+ Managed Switch 4x SFP w/ Ears
$99.99

TP-Link TL-SG2210P 10-Port Gigabit Smart Switch w/ 8-Port PoE+ NO AC SKU 25597
$36.98

Monoprice 5-Port 10/100/1000Mbps Gigabit Ethernet Unmanaged Switch Network Hub
$8.99

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99

TP-Link TL-SG1048 48-Port Gigabit Rackmount Switch New Factory Sealed
$199.99