Jump to content

Apache configuration


Lord Kenneth
 Share

Recommended Posts

I'm behind a router that's configured to port forward port 8080 correctly.

 

The problem is, I can't get it so I can access my server and others can do so. Either I can get it so they can access it and I can't, or I can and no one else can. What's wrong with my setup?

 

ServerRoot /etc/httpd/2.0
Listen 192.168.1.133:8080
ServerName localhost
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ErrorLog logs/error_log
LogLevel warn
Options indexes
DocumentRoot /var/www/html

Link to comment
Share on other sites

The problem is, I can't get it so I can access my server and others can do so.  Either I can get it so they can access it and I can't, or I can and no one else can.  What's wrong with my setup?

What are you doing that makes the difference? Is there something that you are changing in the configuration that makes it so you can access the server internally and not externally and vice versa?

 

Also, have you tried setting it so that the server can be accessed externally and then you try to access it using either http://localhost or http://127.0.0.1?

Link to comment
Share on other sites

actually, I think the problem involves php, but I can't find out what.

 

Here's what's going on (I'm using a proxy to simulate being "outside the lan")...

 

Okay, I can do Http://localhost:8080 just fine. I can do http://IPADDRESS:8080 fine, as well.

 

However, when I try to go to http://IPADDRESS:8080/logd (php game) it forwards me to http://127.0.0.1:8080/logd which of course is not accessible outside the lan. I don't think it's specific to this game as it does that with phpmyadmin as well.

Link to comment
Share on other sites

I think the problem is the router is being set up to forward (or route, I'm not sure of the correct terminology here, sorry) an IP address but needs to be set up to masq it.

 

To illustrate the difference. Here's my situation. I have two seperate lans on different sub mask, one from students and one for staff. The student network is on 192.168.0.0 and the staff on 192.168.69.0 . Now our web sever is on the staff network so students need to access their webmail need to be able to access the web server on the faculty network but nothing else. Therefore, my router (which is actually a 486 running debian Linux) is set up to allow access to 192.168.68.1 (our webserver) on port 80 from 192.168.0.0 . But we also need this to be available from the internet, this needs to be masked. So that requests for port 80 coming from our external ip is masqed to 192.168.69.1 .

 

I think you have set up the internal forwarding (designed for one lan to another) but not masquing (sp?) which is for external IP to lan address.

 

Having said all that I have no idea how to set this up on a router, just a linux box, but it should give you some ideas.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...