Skip to main content

Thread: Can't get Apache to respond to outside requests


i've been scouring message boards , trying different things 2 days , haven't found solution. set ubuntu 10.04.1 few days ago using server iso , selected lamp installation option. using sandbox try out things php/mysql book purchased.

have installed gnome since can't command prompt let me things , gnome may @ least tell me why. installed phpmyadmin.

problem can work thing want in way want - http, ssh, sftp, etc. - within home network apache refuses respond outside request. since it's test box wouldn't big of deal going out of town couple of days , start working new book.

99% sure isp not blocking ports. have comtrend adsl modem router. have given apache server static ip on nat (xxx.xxx.x.101) , set dyndns address don't have keep remembering ip address.

here have tried far:

  1. setup virtual server (port forwarding) on router to direct traffic on port 80 internal ip .101
    1. the router told me interface using 80 move 8080
    2. made sure add port trigger port 80
    3. made sure save/reset router
    4. used iphone connect via 3g - didn't work using ip or dyndns name
    5. used iphone connect 8080 , router responded

  2. set port forwarding/triggering 8080 -> 80. no joy there, either
  3. tried changing listening port 8000
    1. set port forwarding , triggering allow port 8000
    2. changed ports.conf read namevirtualhost *:8000 , listen 8000
    3. changed first line of /etc/apache2/sites-enabled/000-default <virtualhost *:8000>
    4. restarted apache service
    5. apache responded dyndns.com:8000 home machine
    6. no response when trying same on iphone (sorry, it's easiest way me test outside home network)


@ 1 point, added "servername localhost" otherwise empty httpd.conf file didn't seem darn thing.

many of posts have perused @ least couple of years old , have included information on taking action files not there or no longer were. have interpolated can far nothing has worked. suggestions appreciated.

thanks,

can apache serve web-page @ on machine self?
if doesn't fiddling router never help.

i.e. http://localhost/ should show welcome message "it works!"

router should have port forward port 80 xxx.xxx.xxx.101:80.
no triggering! triggers wait event internal network before forwards set up. works games play online not apache. apache has able receive incoming trafic time.

could/should forward port 22 same way use ssh , sftp. anyway because if can log in remotely can fix apache remotely.
don't touch ssh's configuration. ssh listens on interfaces , ip addresses , cares username , password. (it's usefull service ever , hell fix if it's messed up.)

apache config... can become complicated fast. first i'd advise remove apache-lamp , install plain apache2 package. apache has it's own modules handle php. apache serve pages first, complicated stuff second.

hope help.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Can't get Apache to respond to outside requests


Ubuntu

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい