LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-18-2013, 01:44 AM   #1
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

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


Hello,

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 mydomain.com
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 mydomain.com.


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 mydomain.com, 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 domainname.com and inserted my IP address into the A records.
How can I make it reachable via mydomain.com and why wordpress stopped to work?
Thanks,

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

Quote:
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 http://127.0.0.1 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 www.domainname.com works
Ping IP/domainname.com 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.




floorripper

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

Rep: Reputation: 168Reputation: 168
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, 06:20 AM   #3
acelino
LQ Newbie
 
Registered: Jan 2013
Distribution: Ubuntu
Posts: 10

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

Quote:
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 06:45 AM. Reason: Driving traffic to external sites is not allowed at LinuxQuestions!
 
Old 02-01-2013, 09:11 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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, 09:12 PM   #5
fsshl
Member
 
Registered: Jan 2002
Distribution: Ubuntu10.04
Posts: 49

Rep: Reputation: 1
my /etc/hosts
-------------
root@eric-laptop:/home/eric# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 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, 06:42 AM   #6
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

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:

www.mydomain.com = ip address 1.1.1.1

even though I have already had those two lines:
mydomain.com = ip address 1.1.1.1
*.mydomain.com = ip address 1.1.1.1


they needed to be there www.mydomain.com
in order to work.

Looks strange, but than it started to work.
 
Old 02-15-2013, 06:59 AM   #7
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

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

Quote:
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
/etc/apache2

there are two folders for Vhosts settings.

sites-available/
sites-enabled/


inside should be a default file:
000-default

make vi 000-default


Code:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName www.mydomain1.com
        ServerAlias www.mydomain1.com *.mydomain1.com

        DocumentRoot /var/www/mydomain1.com
        <Directory /var/www/mydomain1.com>
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/mydomain1.com
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
    
 </VirtualHost>
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, 08:55 PM   #8
fsshl
Member
 
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 99.116.254.136
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, 08:02 AM   #9
911InsideJob
Member
 
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, 08:53 AM   #10
fsshl
Member
 
Registered: Jan 2002
Distribution: Ubuntu10.04
Posts: 49

Rep: Reputation: 1
have a lightspeed.irvnca.sbcglobal.net stick with my ip

is that mean sbcglobal.net 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?)
EL
 
Old 08-05-2013, 06:07 AM   #11
floorripper
Member
 
Registered: Oct 2011
Location: Central Europe
Distribution: ubuntu 14.04
Posts: 45

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

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

12: 12.123.132.213 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 support@swbell.net or ipadmin-sbis@sbc.com.

this 12.123.132.213 also looks like > AT&T Worldnet Services ATTSVI-12-122-0-0 (NET-12-122-0-0-1) 12.122.0.0 - 12.123.255.255.
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, 09:55 PM   #12
fsshl
Member
 
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 99.116.254.135

Starting Nmap 5.00 ( http://nmap.org ) at 2013-08-09 08:58 PDT
Interesting ports on 99-116-254-135.lightspeed.irvnca.sbcglobal.net (99.116.254.135):
Not shown: 65532 closed ports
PORT STATE SERVICE
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?
EL
 
  


Reply

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



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 12:30 PM
how to add additional web domain for existing web server in rhel5 124vikas.dange@gmail.com Linux - Server 2 11-25-2009 03:45 PM
uploading ssh public using web browser from Debian Linux acute123 Linux - Newbie 5 01-19-2009 07:00 PM
Can you send mail simply by clicking on the email address in the web browser? JBailey742 Linux - Software 6 08-19-2006 04:14 PM
public web browser aka web kiosk xmnemonic Linux - Software 6 06-14-2004 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:36 PM.

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