Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Removing :8080 from the URL Mike Cunneen November 21, 2008 6:39 AM
RE: Removing :8080 from the URL Stan X November 21, 2008 7:11 AM
RE: Removing :8080 from the URL Gustavo Fernández Gómez November 21, 2008 9:11 AM
RE: Removing :8080 from the URL Rob Sonke November 21, 2008 10:05 AM
RE: Removing :8080 from the URL Eric Cartman March 11, 2009 3:32 AM
RE: Removing :8080 from the URL steve rieger March 11, 2009 1:25 PM
RE: Removing :8080 from the URL Eric Cartman July 13, 2010 5:49 AM
RE: Removing :8080 from the URL David Sims April 22, 2009 8:23 AM
RE: Removing :8080 from the URL Olaf Kock April 22, 2009 11:25 AM
RE: Removing :8080 from the URL Eric Cartman July 13, 2010 5:48 AM
RE: Removing :8080 from the URL li guicheng September 9, 2010 1:57 AM
RE: Removing :8080 from the URL Olaf Kock September 10, 2010 12:33 AM
RE: Removing :8080 from the URL gnp present February 4, 2015 9:05 AM
RE: Removing :8080 from the URL David H Nebinger February 4, 2015 11:45 AM
RE: Removing :8080 from the URL gnp present February 4, 2015 12:19 PM
RE: Removing :8080 from the URL David H Nebinger February 4, 2015 12:33 PM
RE: Removing :8080 from the URL gnp present February 4, 2015 12:43 PM
RE: Removing :8080 from the URL Suresh Nimmakayala February 4, 2015 12:51 PM
RE: Removing :8080 from the URL gnp present February 4, 2015 1:03 PM
RE: Removing :8080 from the URL Suresh Nimmakayala February 4, 2015 1:20 PM
RE: Removing :8080 from the URL gnp present February 4, 2015 1:57 PM
RE: Removing :8080 from the URL gnp present February 4, 2015 1:58 PM
RE: Removing :8080 from the URL David H Nebinger February 4, 2015 2:09 PM
RE: Removing :8080 from the URL Olaf Kock February 6, 2015 1:15 AM
RE: Removing :8080 from the URL gnp present February 6, 2015 12:22 PM
RE: Removing :8080 from the URL David H Nebinger February 6, 2015 2:51 PM
RE: Removing :8080 from the URL gnp present February 6, 2015 12:23 PM
RE: Removing :8080 from the URL Suresh Nimmakayala February 4, 2015 2:16 PM
RE: Removing :8080 from the URL gnp present February 4, 2015 2:31 PM
RE: Removing :8080 from the URL Ramalingaiah Dudidmetle February 4, 2015 9:11 PM
RE: Removing :8080 from the URL Suresh Nimmakayala February 4, 2015 4:22 PM
RE: Removing :8080 from the URL Muhammed Shafeek V February 4, 2015 8:52 PM
Mike Cunneen
Removing :8080 from the URL
November 21, 2008 6:39 AM
Answer

Mike Cunneen

Rank: Junior Member

Posts: 55

Join Date: November 21, 2008

Recent Posts

Hi,

I have searched everywhere but can't figure out how to do this.

Basically, I want to remove the :8080 from my urls so I my portal will be ready for deployment. When I type in http://localhost/ I want to access the portal, rather than typing in http://localhost:8080

How does one do this?

Any advice would be great!

Thanks in advance,

Mike
Stan X
RE: Removing :8080 from the URL
November 21, 2008 7:11 AM
Answer

Stan X

Rank: Regular Member

Posts: 202

Join Date: January 27, 2008

Recent Posts

Provided that you use Apache/Tomcat, the port setting is at $CATALINA_HOME/conf/server.xml. You will need to change the port 8080 to 80.

You may want to also check the "Portal Administrator's Guide" and your server's specific settings before deployment.
Gustavo Fernández Gómez
RE: Removing :8080 from the URL
November 21, 2008 9:11 AM
Answer

Gustavo Fernández Gómez

Rank: Regular Member

Posts: 191

Join Date: October 26, 2007

Recent Posts

if you change the port that coyote is listening (coyote is the tomcat http connector) you are still serving the pages from coyote.
I think is better to put apache web-server behind tomcat and your clients and then use ajp13 protocol (apache mod_jk) to redirect the request from apache to tomcat... you can also turn off the coyote connector.
Rob Sonke
RE: Removing :8080 from the URL
November 21, 2008 10:05 AM
Answer

Rob Sonke

Rank: Expert

Posts: 275

Join Date: August 26, 2007

Recent Posts

I agree with Gustavo, changing tomcat to run on port 80 will also force you to run it by the root user. Adding apache in front has a lot of advantages.
Eric Cartman
RE: Removing :8080 from the URL
March 11, 2009 3:32 AM
Answer

Eric Cartman

Rank: New Member

Posts: 14

Join Date: October 22, 2008

Recent Posts

Hello,

I found this thread and have one question regarding firewall settings:

I have configured Tomcat being behind Apache2 using the ajp13 (mod_jk) stuff, wasn't too hard at all. Now I want to configure a hardware firewall and ask myself, if I could block port 8080 from outside, since incoming connections go via Apache2 virtual host on port 80.

Does anyone know if port 8080 still needs to be open to public?

Kind regards,

Dansen
steve rieger
RE: Removing :8080 from the URL
March 11, 2009 1:25 PM
Answer

steve rieger

Rank: Expert

Posts: 436

Join Date: September 11, 2006

Recent Posts

switch from mod_jk to mod_proxy
proxypass and proxypassreverse

then block port 8080
Eric Cartman
RE: Removing :8080 from the URL
July 13, 2010 5:49 AM
Answer

Eric Cartman

Rank: New Member

Posts: 14

Join Date: October 22, 2008

Recent Posts

Hi Steve,

thanks for the information, it worked!

regards,

...
David Sims
RE: Removing :8080 from the URL
April 22, 2009 8:23 AM
Answer

David Sims

Rank: New Member

Posts: 2

Join Date: April 3, 2009

Recent Posts

Just to offer one potentially useless suggestion: although having Apache field requests at port 80 and forwarding them to Tomcat at port 8080 is usually what people do, there's another possibility. On Linux boxes, you can use iptables to redirect requests from port 80 to port 8080. This allows Tomcat to run as non-root on port 8080 and means you don't have to deploy Apache. In my case, the RAM saved on my slice was worth it, not to mention the simpler machine configuration.

I followed this tip to get iptables redirecting the port 80 traffic to port 8080:

http://esupport.marvinsweb.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=138

FWIW,
David
Olaf Kock
RE: Removing :8080 from the URL
April 22, 2009 11:25 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2405

Join Date: September 23, 2008

Recent Posts

Dennis Grzywatz:
Does anyone know if port 8080 still needs to be open to public?


You seem to have already solved your problem, but just for the records, let me add: If nobody from the public accesses port 8080 you don't need it open for the public.

If Apache forwards to port 8080 (i.e. via mod_proxy) and lives on the same server, you can configure the connection to go to 127.0.0.1, which is usually no problem for firewalls - especially not if you're talking about hardware firewalls - I understand that this would be a different box without any knowledge about your webservers notion of 127.0.0.1.

If Apache and (e.g.) Tomcat live on different servers that are not connected through said firewall (e.g. because both are behind the same firewall) you also can block all access to tomcat from the public.

Last: This forum category contains a lot of questions and good answers about mod_jk, mod_proxy and related configuration means to publish liferay sites on port 80 instead of 8080.
Eric Cartman
RE: Removing :8080 from the URL
July 13, 2010 5:48 AM
Answer

Eric Cartman

Rank: New Member

Posts: 14

Join Date: October 22, 2008

Recent Posts

Hi,

I still have to have Apache 2 for other reasons, so the port forwarding sounds nice, but I cannot use it here. And yes, the server is behind a hardware (shared) firewall. I also searched the tipps here at Liferay forums but could not find any hint if 8080 can be blocked.

Thanks for the help,

Eric
li guicheng
RE: Removing :8080 from the URL
September 9, 2010 1:57 AM
Answer

li guicheng

Rank: Junior Member

Posts: 25

Join Date: March 28, 2010

Recent Posts

Hi, Olaf

I want to ask another question about putting Tomcat behind Apache. I active the two modules on Apache to remove the 8080 from the URL.
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
I used to put some big files at apache/htdocs to let download from the url http://localhost/abc.file. But When actived the two modules, all request are now go to tomcat. And I don't know where to put my file and what the URL will be!

Any hints?

Thanks in advance.

li guicheng
Olaf Kock
RE: Removing :8080 from the URL
September 10, 2010 12:33 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2405

Join Date: September 23, 2008

Recent Posts

You can either configure Liferay to be not on the root context "/", but, for example, on "/portal", so that Apache needs to forward just this URL-path to Liferay. This frees up all the other paths that can be delivered by Apache.

If you use mod_jk and the JkMount directive, note that there's also a JkUnmount (or JkUnMount) directive (are they case-sensitive?), that allows you to name exceptions for the JkMount rules - e.g. "JkUnmount /static" will deliver the URL-path /static/* from Apache
gnp present
RE: Removing :8080 from the URL
February 4, 2015 9:05 AM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

Hello,

i installed liferay 6.2 CE GA3 to centos 6.x 64 bit. My liferay site can be access now to myip.com:8080 . How make the liferay site to be access to myip.com? without 8080! can you help me with this please?
thank you
David H Nebinger
RE: Removing :8080 from the URL
February 4, 2015 11:45 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8956

Join Date: September 1, 2006

Recent Posts

gnp present
RE: Removing :8080 from the URL
February 4, 2015 12:19 PM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

Thank you very much SIR, but i don’t understand what you explain in your link....seems to be very complicated to me what you describe there. Another simple way doesn’t exist?

thank you
David H Nebinger
RE: Removing :8080 from the URL
February 4, 2015 12:33 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8956

Join Date: September 1, 2006

Recent Posts

gnp present:
Thank you very much SIR, but i don’t understand what you explain in your link....seems to be very complicated to me what you describe there. Another simple way doesn’t exist?


One that's worth pursuing? No.
gnp present
RE: Removing :8080 from the URL
February 4, 2015 12:43 PM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

It’s not enough to do that in portal-ext.properties?

# domain name of web server
web.server.host=www.mydomain.com
# http port of web server
web.server.http.port=80
# https port of web server
web.server.https.port=443
Suresh Nimmakayala
RE: Removing :8080 from the URL
February 4, 2015 12:51 PM
Answer

Suresh Nimmakayala

Rank: Liferay Master

Posts: 643

Join Date: August 17, 2004

Recent Posts

did you changed in in bundles server.xml in the folder .......... /conf/server.xml

check Connector port

<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" URIEncoding="UTF-8" />
gnp present
RE: Removing :8080 from the URL
February 4, 2015 1:03 PM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

No.

so …step 1.
change in server.xml connector port to 80

step 2. add in portal-ext.properties

web.server.host=www.mydomain.com
web.server.http.port=80
web.server.https.port=443

step3 - restart server


it.s correct ?
Suresh Nimmakayala
RE: Removing :8080 from the URL
February 4, 2015 1:20 PM
Answer

Suresh Nimmakayala

Rank: Liferay Master

Posts: 643

Join Date: August 17, 2004

Recent Posts

give it a go
gnp present
RE: Removing :8080 from the URL
February 4, 2015 1:57 PM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

not works!
gnp present
RE: Removing :8080 from the URL
February 4, 2015 1:58 PM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

NOT WORKS!
David H Nebinger
RE: Removing :8080 from the URL
February 4, 2015 2:09 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8956

Join Date: September 1, 2006

Recent Posts

gnp present:
NOT WORKS!


The method I outlined will work and is used by real administrators around the world.

Tomcat listening on port 80? That is a hack that no real administrator would recommend.
Suresh Nimmakayala
RE: Removing :8080 from the URL
February 4, 2015 2:16 PM
Answer

Suresh Nimmakayala

Rank: Liferay Master

Posts: 643

Join Date: August 17, 2004

Recent Posts

remove those entries in portal-ext and restart and see what happens

because my default values are same

##
## Web Server
##

#
# Set the HTTP and HTTPs ports when running the portal in a J2EE server that
# is sitting behind another web server like Apache. Set the values to -1 if
# the portal is not running behind another web server like Apache.
#
web.server.http.port=-1
web.server.https.port=-1

#
# Set the hostname that will be used when the portlet generates URLs.
# Leaving this blank will mean the host is derived from the servlet
# container.
#
web.server.host=
gnp present
RE: Removing :8080 from the URL
February 4, 2015 2:31 PM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

theese
web.server.http.port=-1
web.server.https.port=-1

is seting to 80,443 in portal-ext.properties


how remove? or from where must removed? portal-ext.properties rewrite portal.properties
Suresh Nimmakayala
RE: Removing :8080 from the URL
February 4, 2015 4:22 PM
Answer

Suresh Nimmakayala

Rank: Liferay Master

Posts: 643

Join Date: August 17, 2004

Recent Posts

step 2. remove in portal-ext.properties

web.server.host=www.mydomain.com
web.server.http.port=80
web.server.https.port=443
Muhammed Shafeek V
RE: Removing :8080 from the URL
February 4, 2015 8:52 PM
Answer

Muhammed Shafeek V

Rank: Regular Member

Posts: 131

Join Date: July 21, 2013

Recent Posts

Hi,

https://www.liferay.com/web/shafeek.msv/blog/-/blogs/setup-liferay-6-2-on-ec2-ubuntu-instance-with-apache2


hope that help,

Shafeek.
Ramalingaiah Dudidmetle
RE: Removing :8080 from the URL
February 4, 2015 9:11 PM
Answer

Ramalingaiah Dudidmetle

Rank: Regular Member

Posts: 148

Join Date: August 16, 2014

Recent Posts

E:\Liferay Software\New Softwares\liferay-portal-6.2-ce-ga3\tomcat-7.0.42\conf insed server.xml file
then change in port number 80
in you path open server.xml file insed chack it ,this Line change port number
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
open eclipse insed Tomcat server folder in open the server.xml and same port number give impotent
Olaf Kock
RE: Removing :8080 from the URL
February 6, 2015 1:15 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2405

Join Date: September 23, 2008

Recent Posts

David H Nebinger:
The method I outlined will work and is used by real administrators around the world.

Tomcat listening on port 80? That is a hack that no real administrator would recommend.


I want to second this (and want it to stand at the end of this thread). Go this way, don't change tomcat's actual port to 80. And the entries in portal(-ext).properties that are mentioned in this thread don't change any actual port on their own. They just tell Liferay what port to use in case it can't figure this out itself (which might be the case when you use mod_proxy for http forwarding instead of AJP (mod_jk or mod_proxy_jk).

Do what David says!
gnp present
RE: Removing :8080 from the URL
February 6, 2015 12:22 PM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

Hi,
using proxy_mod , just add in the bottom of httpd.conf file :

NameVirtualHost *:80
<VirtualHost *:80>
ServerName liferay62.local
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyPreserveHost On
</VirtualHost>

and SOLVED!!!

thanks to all for amiability help!!!
gnp present
RE: Removing :8080 from the URL
February 6, 2015 12:23 PM
Answer

gnp present

Rank: Junior Member

Posts: 34

Join Date: June 8, 2010

Recent Posts

Hi,
using proxy_mod , just add in the bottom of httpd.conf file :

NameVirtualHost *:80
<VirtualHost *:80>
ServerName liferay62.local
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyPreserveHost On
</VirtualHost>

and SOLVED!!!
David H Nebinger
RE: Removing :8080 from the URL
February 6, 2015 2:51 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8956

Join Date: September 1, 2006

Recent Posts

gnp present:
Hi, using proxy_mod , and SOLVED!!!


+1 for doing things the right way.