Operating System - HP-UX
1820592 Members
1922 Online
109626 Solutions
New Discussion юеВ

apache standard port change

 
SOLVED
Go to solution
marco cochet
Occasional Contributor

apache standard port change

hello wizards,
i want to ask if it is possible to configure apache so that it is running on another port than the standard one .
i ask this because my provider prevents users from other providers to access my webserver on port 80
thanks in advance
PS my operating system is hp-ux 11.11 on a c3000

3 REPLIES 3
Christopher McCray_1
Honored Contributor

Re: apache standard port change

Hello,

Shure, you can. Before switching to SSL on port 443, we had it running on 7777.

Hope this helps

Chris
It wasn't me!!!!
Sridhar Bhaskarla
Honored Contributor
Solution

Re: apache standard port change

Hi,

A good security practice is not to run apache at port 80 or less than 1024 and with the user "root".

Stop apache. Edit your /opt/apache/conf/httpd.conf file and change the port from 80 to 8000 or something. Create a user called "www" (it should be there by default) with a group www. In the httpd.conf file specify "User" and "Group" as "www" and "www" respectively. Start apache. It should start with www as the user. Make sure the permissions of your documentroot are set correctly otherwise you may encounter "Document not found" errors.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: apache standard port change

When oracle delivers apache, it runs on port 7777.

thats set in httpd.conf, wherever that is on HP-UX installs.

If you want to use another port below 1024 besides 80, there is an additional procedure to set up permissions.

When apache installs 80 and 443(ssl...) are authorized by the install process.

Bastille does a security update on apache, making it run in a more secure fashion. Its a good idea to run Bastille after you have apache configured and running.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com