You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Γιώργος Κατωποδης <yi...@gmail.com> on 2011/01/10 03:29:50 UTC

[users@httpd] Changing apache default port 80 creates problem

Hello all,

I run ubuntu 10.04.1 on a virtual linode server. When i change the default
port 80 to 8081 or 81 (because another application needs to run on the port
80 -nginx-) and then browse my domain name, i must write in the browser
window xxx.xxx.xxx.xxx:8081 (or 81) in order to go in my site. When i just
write the ip address xxx.xxx.xxx.xxx the browser responds with a broken link
comment.
Is it something i can do about it???

Thanks in advance

Yiorgos Katopodis

Re: [users@httpd] Changing apache default port 80 creates problem

Posted by Muhammad Nuzaihan <mu...@asfasystems.com>.
You forgot http://

http://IP:8081

Sent from my iPhone

On Jan 10, 2011, at 10:30 AM, "Γιώργος Κατωποδης"
<yi...@gmail.com> wrote:

> Hello all,
>
> I run ubuntu 10.04.1 on a virtual linode server. When i change the default port 80 to 8081 or 81 (because another application needs to run on the port 80 -nginx-) and then browse my domain name, i must write in the browser window xxx.xxx.xxx.xxx:8081 (or 81) in order to go in my site. When i just write the ip address xxx.xxx.xxx.xxx the browser responds with a broken link comment.
> Is it something i can do about it???
>
> Thanks in advance
>
> Yiorgos Katopodis
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Changing apache default port 80 creates problem

Posted by Eric Covener <co...@gmail.com>.
2011/1/9 Γιώργος Κατωποδης <yi...@gmail.com>:
> Hello all,
> I run ubuntu 10.04.1 on a virtual linode server. When i change the default
> port 80 to 8081 or 81 (because another application needs to run on the port
> 80 -nginx-) and then browse my domain name, i must write in the browser
> window xxx.xxx.xxx.xxx:8081 (or 81) in order to go in my site. When i just
> write the ip address xxx.xxx.xxx.xxx the browser responds with a broken link
> comment.

That's just how it works -- your browser assumes port 80 for HTTP
URL's, and if you use something else on your server your browser
doesn't guess.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Changing apache default port 80 creates problem

Posted by Muhammad Nuzaihan Kamal <mu...@asfasystems.com>.
Use http:// instead of IP address.

Example: http://xx.xx.xx.xx:8081

Regards,
Muhammad Nuzaihan

On Mon, 2011-01-10 at 04:29 +0200, Γιώργος Κατωποδης wrote:
> Hello all,
> 
> 
> I run ubuntu 10.04.1 on a virtual linode server. When i change the
> default port 80 to 8081 or 81 (because another application needs to
> run on the port 80 -nginx-) and then browse my domain name, i must
> write in the browser window xxx.xxx.xxx.xxx:8081 (or 81) in order to
> go in my site. When i just write the ip address xxx.xxx.xxx.xxx the
> browser responds with a broken link comment.
> Is it something i can do about it???
> 
> 
> Thanks in advance
> 
> 
> Yiorgos Katopodis
> 
> 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Changing apache default port 80 creates problem

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 1/16/2011 5:09 PM, Γιώργος Κατωποδης wrote:
> That is right. The expected behaviour from the browsers is to look (from default) at port 80.
> I finally solved the problem by changing *nginx* configuration to listen to port 81 and
> apache stayed on port 80.

Just as a footnote, you can always set up multiple IP addresses to the box
(multihomed) and configure each server to accept requests from only one of
the IP addresses.  Note when you do this, none will answer to http://localhost/
unless you configure one to that IP address, as well :)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Changing apache default port 80 creates problem

Posted by Γιώργος Κατωποδης <yi...@gmail.com>.
That is right. The expected behaviour from the browsers is to look (from
default) at port 80.
I finally solved the problem by changing *nginx* configuration to listen to
port 81 and apache stayed on port 80.
Everything worked well after that.

Thank you all for your replies!!!

YK

2011/1/10 John Doe <jd...@yahoo.com>

> From: Γιώργος Κατωποδης <yi...@gmail.com>
> >I run ubuntu 10.04.1 on a virtual linode server. When i change the default
> port
>
> >80 to 8081 or 81 (because another application needs to run on the port 80
> >-nginx-) and then browse my domain name, i must write in the browser
> window
> >xxx.xxx.xxx.xxx:8081 (or 81) in order to go in my site. When i just write
> the ip
> >
> >address xxx.xxx.xxx.xxx the browser responds with a broken link comment.
> >Is it something i can do about it???
>
> It is expected behavior...  Port 80 is the default http port.
> If you do not specify a port in your URL, your browser will assume it is 80
> and
> so will point to your nginx.
> If nginx is in front and proxy to apache, you have a problem with your
> nginx
> configuration...
> If not, it is normal behavior (but you still have a problem with your nginx
> configuration).
>
> JD
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Changing apache default port 80 creates problem

Posted by John Doe <jd...@yahoo.com>.
From: Γιώργος Κατωποδης <yi...@gmail.com>
>I run ubuntu 10.04.1 on a virtual linode server. When i change the default port 

>80 to 8081 or 81 (because another application needs to run on the port 80 
>-nginx-) and then browse my domain name, i must write in the browser window 
>xxx.xxx.xxx.xxx:8081 (or 81) in order to go in my site. When i just write the ip 
>
>address xxx.xxx.xxx.xxx the browser responds with a broken link comment.
>Is it something i can do about it???

It is expected behavior...  Port 80 is the default http port.
If you do not specify a port in your URL, your browser will assume it is 80 and 
so will point to your nginx.
If nginx is in front and proxy to apache, you have a problem with your nginx 
configuration...
If not, it is normal behavior (but you still have a problem with your nginx 
configuration).

JD


      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org