Ubuntu server (apache) won't respond to external requests -
i'm new missing totally obvious, can't connect server using external ip. internally works dream (10.0.0.28/redmine), when try connect using external ip requests time out. forwarded both ssh port , port 80 shown below, didn't solve problem. ports show being open www.portchecktool.com.
ssh works fine internally, when issue command shown here says connection closed remote host.
ssh {my external ip} -pxxxx -i /home/millerir/.ssh/id_rsa -l imiller similarly when navigate {my ip}/redmine or {my ip} or {my_ip}:80 or ddns service address connection reset while trying connect errors browser.
i did check server listening on port 80 , ssh port shown below.
me@ubuntu-server:/etc/apache2/sites-available$ sudo netstat -tulpn | grep listen tcp 0 0 0.0.0.0:xxxx 0.0.0.0:* listen 779/sshd tcp 0 0 127.0.0.1:57384 0.0.0.0:* listen 1192/redmine tcp 0 0 127.0.0.1:3306 0.0.0.0:* listen 862/mysqld tcp6 0 0 :::xxxx :::* listen 779/sshd tcp6 0 0 :::80 :::* listen 923/apache2 if me appreciated. i'm stuck , kind of clueless.
redmine.conf
<virtualhost *:80> # servername directive sets request scheme, hostname , port # server uses identify itself. used when creating # redirection urls. in context of virtual hosts, servername # specifies hostname must appear in request's host: header # match virtual host. default virtual host (this file) # value not decisive used last resort host regardless. # however, must set further virtual host explicitly. #servername www.example.com serveradmin webmaster@localhost #documentroot /var/www/html # available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # possible configure loglevel particular # modules, e.g. #loglevel info ssl:warn errorlog ${apache_log_dir}/error.log customlog ${apache_log_dir}/access.log combined # configuration files conf-available/, # enabled or disabled @ global level, possible # include line 1 particular virtual host. example # following line enables cgi configuration host # after has been globally disabled "a2disconf". #include conf-available/serve-cgi-bin.conf documentroot /var/www <directory /var/www/redmine> railsbaseuri /redmine passengerresolvesymlinksindocumentroot on </directory> </virtualhost> http.conf
<listen 80 <ifmodule ssl_module> listen 443 </ifmodule> <ifmodule mod_gnutls.c> listen 443 </ifmodule>
so figured out after digging around routers don't going "out , in". tried connecting server using data on phone , works now.
Comments
Post a Comment