-
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

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM
$699.00

NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 - 4X S25G NICs
$1999.97

AS IS READ DESCRIP. Supermicro SuperServer 6026TT-HIBQRF 12-Bay 4x X8DTT-HIBQF
$215.00

Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR
$96.60

Dell R740XD VxRail P570 24x 2.5” 2U CTO Server– 2x Gold 6240, H740p, 2x 1600W
$699.00

Dell PowerEdge FX2 FX2s Server 10GbE CMC Blade Enclosure Chassis
$274.99

Dell PowerEdge VRTX Rackmount Chassis w/4x PSUs 2x CMC Modules
$399.98

Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 2.8ghz 20-Cores | 128GB
$149.99

Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD
$119.99

Intel H2000 4 Node H2216XXKR, 2x 1600w PSU HPC Server Chassis 16x 2.5"
$199.99