Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-18-2013, 02:44 AM   #1
LQ Newbie
Registered: Oct 2011
Distribution: ubuntu 10.04
Posts: 25

Rep: Reputation: Disabled
Question Web server with public IP address not reachable via domain name in the web browser


Recently I have setup a public web server on the internet. I have tested it in the lab with the simulated public IP addresses. Server is behind the cisco firewall and I have allowed ports 22 and 80. In the lab it worked. I was able to reach my server at the
with the local connection to the FW and than to the server. I have entered an entry to the /etc/hosts for a simulated dns lookup for

I am having running an Wordpress instance on the apache server. Since I have moved it to the public internet segment. My wordpress instance does no work eighter, I can only see the white screen without my theme. There is also an issue to log in into the wp-admin.

When I make nslookup, I can get the right IP address.
ssh and port 80 also works.
from the server itself I can also do nslookups. I have seted up it with public dns server.

I have conntaced company where I have bought the and inserted my IP address into the A records.
How can I make it reachable via and why wordpress stopped to work?

I have to admint that I have not done any apache modification.

Originally Posted by floatingworld View Post
Can you see the site in the browser by typing in the IP address, in the same way that and http://localhost are equivalent?
- no I cannot

Firewall is open for port 22 and 80. and performs nat to the inside of the network.

Yes, server is on the internet with public ip.

nslookup works
Ping IP/ works
ssh works
telnet at port 80 works

I can see my wordpress webpage by using an IP address. But is broken and I cannot navigate to the wp-admin. But that is another problem. Main problem is that i cannot

I believe that it is an issue with the apache2 configuration or virtual host settings.


Last edited by floorripper; 01-18-2013 at 06:22 AM. Reason: forgot to point out something
Old 01-18-2013, 06:23 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
Have a look in Apache's httpd.conf file for the Listen directive. If it has an IP address, it may not be the one you're using. Try changing it to Listen 80 and re-start Apache to see if that works. There's more info here
Old 02-01-2013, 07:20 AM   #3
LQ Newbie
Registered: Jan 2013
Distribution: Ubuntu
Posts: 10

Rep: Reputation: Disabled
please post some snippets on apache log

tail -f /var/log/apache2/error.log
tail -f /var/log/apache2/access.log

More step by step Linux Tutorials at <moderated>

Last edited by colucix; 02-01-2013 at 07:45 AM. Reason: Driving traffic to external sites is not allowed at LinuxQuestions!
Old 02-01-2013, 10:11 AM   #4
LQ Guru
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM 17.1
Posts: 5,008
Blog Entries: 10

Rep: Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212Reputation: 1212
How to change a Wordpress site URL maybe?

and I'd comment out any 'test' IPs in /etc/hosts if you choose to go that route.
Old 02-02-2013, 10:12 PM   #5
Registered: Jan 2002
Distribution: Ubuntu10.04
Posts: 49

Rep: Reputation: 1
my /etc/hosts
root@eric-laptop:/home/eric# cat /etc/hosts localhost eric-laptop

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
how should I modify so my two domain, domain1, domain2(both connect to my external(public) ip) will goto 2 different sites of my linux server, one(domain1) goto /var/www/index.html, the other(domain2) goto /var/www/domain2/public_html/index.html
in apache2, ubuntu10.04(2.6.38-10)?
Old 02-15-2013, 07:42 AM   #6
LQ Newbie
Registered: Oct 2011
Distribution: ubuntu 10.04
Posts: 25

Original Poster
Rep: Reputation: Disabled
I have solved the original Issue!

Problem was with my domain registration company. I had to explicitly add to the customer Web interface config: = ip address

even though I have already had those two lines: = ip address
* = ip address

they needed to be there
in order to work.

Looks strange, but than it started to work.
Old 02-15-2013, 07:59 AM   #7
LQ Newbie
Registered: Oct 2011
Distribution: ubuntu 10.04
Posts: 25

Original Poster
Rep: Reputation: Disabled
two domains on the same server = apache virtualhost

Originally Posted by fsshl View Post
domain1 /var/www/index.html,
domain2 /var/www/domain2/public_html/index.html

In order to run multiple domains on the same ip address, you have to use Apache VIRTUAL HOSTS functionality.
in the directory

there are two folders for Vhosts settings.


inside should be a default file:

make vi 000-default

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerAlias *

        DocumentRoot /var/www/
        <Directory /var/www/>
                Options FollowSymLinks
                AllowOverride None
        <Directory /var/www/
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
Importat parts of the configs is :
DocumentRoot you say apache where to look for a index.html.php files. So it can look like this
Old 08-03-2013, 09:55 PM   #8
Registered: Jan 2002
Distribution: Ubuntu10.04
Posts: 49

Rep: Reputation: 1
although thanks your detailed/advanced reply, my current website/page can not be reached.
I wonder it is because my isp-at&t-Uverse block to my self's apache2 setting make mistake
my public/external ip is
please try to pink/trace my address to see whether you can reach me( I already do portforwarding, since my At&t using wire/wireless motorola router).
thanks your help again in advance(I am waiting), EL
Old 08-04-2013, 09:02 AM   #9
Registered: Jul 2013
Distribution: Mint KDE
Posts: 74

Rep: Reputation: Disabled
That IP is unreachable from here on the Interwebzes. Might want to call the AT&T support number in Richardson, Texas for help, it's 888-510-5545
Old 08-04-2013, 09:53 AM   #10
Registered: Jan 2002
Distribution: Ubuntu10.04
Posts: 49

Rep: Reputation: 1
have a stick with my ip

is that mean block my at&t assigned static ip(through uverse to my Los Angeles home)?
if so, anyone can help me remove that?(in additon to contact At&t?)
Old 08-05-2013, 07:07 AM   #11
LQ Newbie
Registered: Oct 2011
Distribution: ubuntu 10.04
Posts: 25

Original Poster
Rep: Reputation: Disabled
your address is not reachable

I am located outside USA and my trace to your address stops here:

12: 201.717ms asymm 15

I cannot ping your IP address. According whois it looks like that address was sold by At&t or SBCIS-SBIS, Contact or

this also looks like > AT&T Worldnet Services ATTSVI-12-122-0-0 (NET-12-122-0-0-1) -
I do not know any another way how to overcome this issue. Do you host the server on your own or does that another company for you.
Consult it with your hosting - company or with the company which sold the IP address to you. Request them to make that public IP address available. It is also their responsibility to fix it, if they are sold it to you.

The last scenario is:
Did you posted on your homepage some informations which Atat or USA did not like? They could have blocked you.
Old 08-09-2013, 10:55 PM   #12
Registered: Jan 2002
Distribution: Ubuntu10.04
Posts: 49

Rep: Reputation: 1
although I inform At&t about such port 80 filter, I wonder they will remove/unblock or even reply/reponse to my request.
but I guess we should still have some way to get around it. I use nmap to scan my own public/external ip, I found I have 2 others ports open:
root@eric-laptop:/# nmap -p 1-65535

Starting Nmap 5.00 ( ) at 2013-08-09 08:58 PDT
Interesting ports on (
Not shown: 65532 closed ports
53/tcp open domain
80/tcp filtered http
7547/tcp open unknown

Nmap done: 1 IP address (1 host up) scanned in 11.12 seconds
so can I modify apahce2 or linux kernel/system file to use that 2 opened ports on my pc to broadcast?


apache2, dns, domains, public-ip-address, wordpress

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: RockMelt social web browser goes into public beta LXer Syndicated Linux News 0 03-11-2011 01:30 PM
how to add additional web domain for existing web server in rhel5 Linux - Server 2 11-25-2009 04:45 PM
uploading ssh public using web browser from Debian Linux acute123 Linux - Newbie 5 01-19-2009 08:00 PM
Can you send mail simply by clicking on the email address in the web browser? JBailey742 Linux - Software 6 08-19-2006 05:14 PM
public web browser aka web kiosk xmnemonic Linux - Software 6 06-14-2004 04:20 PM

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration