掲示板

Virtual hosting remove port number in Url

12年前 に karthik N によって更新されました。

Virtual hosting remove port number in Url

Regular Member 投稿: 106 参加年月日: 11/07/01 最新の投稿
Hi,

I need to do virtual hosting for my home community, I want to customize the following URL "http://localhost:8080/web/guest/home" to "http://myintranet.com/web/guest/home"

For that i followed this link
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Virtual+Hosting+(Communities)

i can able to remove local host by editing the host file
now i can able to access the liferay home with the following url http://myintranet.com:8080/,

i need to remove port number also, for that i followed that link procedure,
when i start apache(im using Apache 2.2), the following error will be displayed

httpd.exe: Syntax error on line 131 of F:/Apache Software Foundation/Apache2.2/c
onf/httpd.conf: Cannot load F:/Apache Software Foundation/Apache2.2/modules/mod_
jk2.so into server: The specified module could not be found.


anybody have a solution?


Thanks

Regards,
Karthik
thumbnail
12年前 に Thiago Leão Moreira によって更新されました。

RE: Virtual hosting remove port number in Url

Liferay Legend 投稿: 1449 参加年月日: 07/10/10 最新の投稿
Hi,

What seems to be happening is that your file httpd.conf has a syntax error at line 131. You should check the Apache documentation http://httpd.apache.org/ to fix your problem.
thumbnail
12年前 に Hitoshi Ozawa によって更新されました。

RE: Virtual hosting remove port number in Url

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
Can't you just change your Tomcat's port number to 80 from the default 8080?

Another question, is why you're using mod_jk2 instead of mod_jk?
12年前 に karthik N によって更新されました。

RE: Virtual hosting remove port number in Url

Regular Member 投稿: 106 参加年月日: 11/07/01 最新の投稿
Hi Ozawa,
I have tried to change port 8080 to 80, Its working fine in the local machine(the same machine), but i need to access liferay from remote machine.
But i cant able to access liferay... and also i thought if any other application running in 80 port it will arise problem..
My requirement is http://localhost:8080/web/guest/home is my home page URL but i need to access with the following URL http://myintranet/web/guest/home from remote machine.


can u help me in this?


Thanks

Regards,
Karthik
12年前 に karthik N によって更新されました。

RE: Virtual hosting remove port number in Url

Regular Member 投稿: 106 参加年月日: 11/07/01 最新の投稿
Hi Ozawa,
I dont know which one i have to use exactly.. either mod_jk2 or mod_jk, Im using Apache 2.2 and LR 6.0.6 with tomcat bundle


Thanks

regards,
karthik
thumbnail
12年前 に Hitoshi Ozawa によって更新されました。

RE: Virtual hosting remove port number in Url

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
You're probably using mod_jk because mod_jk2 is now historical.
It really doesn't matter what port Tomcat is running on because you're going to be using 8009 (default ajp port) to access it.

Apache's default port is 80, so you shouldn't need to do anything special with the port. Probably your Apache configuration.

There shouldn't be any problem because I have similar setup (Apache + mod_jk + JBoss/Liferay + MySQL) running with
global port 80.

Can't help you any further because I don't know what your line 131 in httpd.conf is.
12年前 に karthik N によって更新されました。

RE: Virtual hosting remove port number in Url

Regular Member 投稿: 106 参加年月日: 11/07/01 最新の投稿
Hi Ozawa,
Thanks for ur reply. i will go with your way, I just changed to 8080 to 80, and i need to find out how to access the liferay(server) from remote machine using without using IP address(ie.http://myintranet/web/guest/home).

Thanks a lot..


Regards,
Karthik N