-
Apache 2 help
I just downloaded and installed apache-2.0.47 on a win98 box.
The machine is behind a router with an http virtual server enabled which forwards http requests to the local machine. During the install since I don't own a domain or anything I just put the local ip address of the machine in all the domain and server fields. now apache is installed but I cannot access my web page from anything except the localhost(127.0.0.1) ip. I want to be able to view my web page from my internet ip address. I've tried my LAN ip and WAN ip. But local host is all that works. The LAN ip is the one I entered into the fields at install which with the virtual server should be able to be accessed through the WAN ip. Is there some extra configuration that I need to do?
Thank you for any suggestions.
-
Sounds like it might be a forwarding issue. Have you made sure your router has port 80 forwarding to your windows machine that serves web requests?
-
You can't always access your router's external IP from inside the network. Try using a proxy server such as A Mega Proxy to see if you can get round it that way.
I have a static IP at 62.3.227.191 that you can access, but I can only use the internal IP (on my private network) to access it. I'm not sure if there's a way of getting around this (I think there may be).
-
can you have one machine on a network with a static ip and the rest with dhcp. Right now I am trying to get the windows machine to have a static ip without any success.
any hints?
thanks
-
You should be able to do that, provided that the IP range that the DHCP server assigns from doesn't clash with the static IP address.
Your best bet is to configure the DHCP server to assign IPs starting from 192.168.1.2 (assuming you're using this private IP space) and then give the other machine an IP such as 192.168.255.255, which shouldn't clash.
I honestly can't remember how to assign static IPs in Win98, as it's so long since I used it. However, this is the way I use in 2000 so it may work:
1. Right-click on My Network Places and choose Properties
2. Double click on Local Area Connection
3. Click the Propeties button
4. Select Internet Protocol (TCP/IP) and click Properties
5. Change the radio button to Use the following IP address
6. Fill in the boxes (pretty obvious, the static IP you want, subnet mask will probably be 255.255.255.0 and gateway will be the IP of your DHCP server)
7. Click OK to save the changes
8. Reboot
Like I said, the above instructions have always worked for me on Windows 2000, but I have no idea about Windows 98.
-
Is it ok to change the third number in the ip.
my dhcp server assigns from 192.168.0.100-192.168.0.199
and i tried to use static ip of 192.168.0.99 and it wouldn't work.
I'll probably just have to use dhcp. Has anyone figured out why I can't get to my web site through my WAN ip. I tried using that proxy site and it didn't work. I have gotten this to work with a differents web server called something like the tiny web server. It was like 72kb. I wanted something to maybe start a bulletin board using phpbb.
Would it help if i posted my apache config file?
it's kindof long
thanks.
-
It should be okay to change the third number - you might as well give it a try - if it doesn't work then try changing it back.
It would help if you posted your apache config file - but post it as an attachment, do *not* copy/paste it into your post! :)
I'm running Apache at the moment - server.rixort.com (you should be able to access it). What is the URL or IP address for your WAN, and I will see if I can access it from outside the network.
-
my wan ip is http://24.243.64.239 i think my problem with the static ip is with the dns tab under tcp/ip properties. I'm pretty sure i'm supposed to put in a dns server. I don't know what to put though.
edit
if you tried the url before 6:45 pm US/central time please try again because i was messing with my computer and it wasn't working until now. Also please tell me if the site comes up.
-
Ah, yes, if you want a static IP you'll have to supply a DNS server because usually the DHCP server propogatesthat information for you.
If you find out your DNS info and add that, either it'll work or at least you should be one step closer.
BTW, the IP doesn't work for me.
-
Does apache work with dhcp?
I've tried putting in my isp's dns server. I've also tried putting in the gateway ip which i saw to do on a site somewhere and neither worked.
and also if i can see the web page on the localhost ip shouldn't i be able to see it on the other ip's also. Maybe after you all see the config file we'll figure it out
and by the way here is my config file
thanks
-
Are you sure that Apache is not just listening on the loopback interface?
You will probably want it to listen on all interfaces by default, not loopback only.
Your Listen line in httpd.conf should look like
Not
Code:
Listen 127.0.0.1:80
As the latter will make it listen only on loopback, hence be inaccessible from anywhere else.
Slarty
-
Your gateway IP is usually the address of your router, as that's your gateway to the internet.
Your Listen directive is set correctly, however you should try commenting out (i.e. put a hash - # - sign in front of) the ServerName directive - I have never used that on Windows on Linux and it has always worked fine (I think if anything you would put the IP of your router here).
Assuming that port redirection is enabled on your router, and it is sending requests for port 80 the correct machine, there's no reason why other people shouldn't be able to see your web server if it is running properly on your machine, unless you have a software firewall as well (when I installed Apache on Linux I had to mess about with iptables to get it to show properly).
I can't see any glaring errors in your httpd.conf file, and if there were any it probably wouldn't run as localhost either, so the most likely explanation is either than your port redirection isn't working or your Windows 98 machine hasn't had a static internal IP address assigned to it properly.
-
here's what I'm going to do. I have used fips to split my windows partition.
I have also moved everything I want to keep to the new partition and I am going to reinstall windows. Would you all be really mad at me if I used the iis web server that comes with windows 98. I think that is what I want to do.
also i had uninstalled and reinstalled apache a couple of times and on my control+alt+delete screen there was apache and also something called winoldap. could this be an old configuration of apache that wasn't uninstalled correctly?
anyways, windows just started copying all of the files so it should be up and running in no time. Then i'll install all the drivers and then the iis web server and maybe you all can test it for me.
thanks
h3r3tic
-
I wouldn't be mad with you for using IIS, although it comes with Windows 2000 and XP Professional, not Wndows 98 (that'd be Personal Web Server). But I wouldn't be able to help you either, because my web server knowledge is firmly grounded in Apache, and I've never even tried using IIS. ;)
-
I was going to try and set up the phpbb from sourceforge so i installed php4.3.3.
then i restarted. am i right that all the php files are not supposed to have the symbol that they have when windows doesn't know what i mean. What I'm trying to say is that they should be associated with php4.3.3 shouldn't they?
oh well
thanks
-
PHP files don't need to be associated with the php.exe file (they aren't on my machine, Windows or Linux) because the executable file will be called by the webserver whenever a file with a page with the .php extension is requested.
-
I got apache to work
check it out 24.243.64.239
after I reinstalled windows I downloaded an older version of apache.
I think I might have gotten php to work also.
thanks everyone