tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rodrigo Correa de Paiva" <rodrigocorreapa...@gmail.com>
Subject Re: How to stop having to put :8080 in the url?
Date Fri, 11 Apr 2008 13:14:45 GMT
will u change the port back to 8080, than go to
C:\WINDOWS\system32\drivers\etc and edit the file HOSTS
change : 127.0.0.1       localhost
to :  127.0.0.1:8080       localhost

everytime u type localhost u will be redicted to 127.0.0.1:8080
i never do that, but should work

2008/4/11, Gary Opela (Corporate) <gary.opela@lcibest.com>:
>
> Environment:
> Windows Server 2k3 R2 EE
> Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
> Foundation\Tomcat-5.5.17
> Microsoft IIS 6.0
> IE 6.0.X.X SP2
> Java:
>      jre1.6.0_05
>      jdk1.6.0_05
>
>
> Okay, so I went in my server.xml in C:\Program Files\Apache Software
> Foundation\Tomcat 5.5\conf\server.xml and changed
>
>
> <!--  Define a non-SSL HTTP/1.1 Connector on port 8080
>   -->
>   <Connector port="8080" maxHttpHeaderSize="8192" URIEncoding="UTF-8"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" redirectPort="8443" acceptCount="100"
> connectionTimeout="20000" disableUploadTimeout="true" />
>
>
> To
>
>
> <!--  Define a non-SSL HTTP/1.1 Connector on port 8080
>   -->
>   <Connector port="80" maxHttpHeaderSize="8192" URIEncoding="UTF-8"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" redirectPort="8443" acceptCount="100"
> connectionTimeout="20000" disableUploadTimeout="true" />
>
> Now I can access my application by going to http://localhost/arsys without
> specifying the port. However, now if I go to http://localhost, then it
> redirects me to Tomcat's default page. Is there a way to leave the above
> line referencing port 8080, as that's where I want tomcat to run from, but
> then tell IIS to redirect my localhost/arsys traffic to reference port 8080?
>
>
> Thanks,
>
> Gary Opela, Jr., RSP
> Remedy Engineer
> Leader Communications, Inc.
> Best Product, Best People, Best PriceTM
> An ISO 9001:2000 Certified, CMMI(R) Level 3 Rated Company
>
> -----Original Message-----
>
> From: Gary Opela (Corporate) [mailto:gary.opela@lcibest.com]
>
> Sent: Thursday, April 10, 2008 4:11 PM
> To: Tomcat Users List
>
> Subject: RE: How to stop having to put :8080 in the url?
>
> Thanks, Chris, for the assistance.
>
>
> Thanks,
>
> Gary Opela, Jr., RSP
> Remedy Engineer
> Leader Communications, Inc.
> Best Product, Best People, Best PriceTM
> An ISO 9001:2000 Certified, CMMI(R) Level 3 Rated Company
>
>
> -----Original Message-----
> From: Christopher Schultz [mailto:chris@christopherschultz.net]
> Sent: Thursday, April 10, 2008 4:07 PM
> To: Tomcat Users List
> Subject: Re: How to stop having to put :8080 in the url?
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Gary,
>
> Gary Opela (Corporate) wrote:
> | I have a website that is located under http://localserver:8080/arsys
> |
> | How do I set it to where I just have to hit http://localserver/arsys,
> | without the :8080?
>
> The only way to remove the port number from your URLs is to use the
> standard ports (80 for HTTP and 443 for HTTPS) for your services instead
> of using 8080. Look for any un-commented <Connector> elements in your
> server.xml -- the port number configuration should be obvious based upon
> the examples and comments.
>
> If you are running on a UNIX-like OS, you are likely to run across the
> problem of non-root users (and processes) being prohibited from binding
> to ports lower than 1024. In that case, look for "jsvc" which is pretty
> much the standard these days for running java processes with access to
> privileged resources.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkf+gXMACgkQ9CaO5/Lv0PDDBACbBbyFAiiTox3zTFhSENg/aqXB
> HS4AnAyvFuqjFvlGkauEhrny2Qj0UoON
> =tDBY
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message