PDA

Click to See Complete Forum and Search --> : httpd question


nipp2001
March 22nd, 2002, 11:23 PM
does anyone know how to change the port for httpd to use instead of port 80?
Or is that even possible...
any input would be greatly appreciated!

IchNiSan
March 22nd, 2002, 11:29 PM
edit the httpd.conf file, here /usr/local/apache/conf/httpd.conf
or wherever you installed apache to...

Find the section about listening

and add

Listen <insert port number here>

or

Listen <insert-ip-address-here> : <insert port number here>

then restart httpd

ThePreacher
March 22nd, 2002, 11:29 PM
Finally an easy question that I can answer. If you use Apache, find your httpd.conf file and use an editor (I prefer vi) to make changes. My httpd.conf file is located in /etc/httpd/conf/httpd.conf. Near the top of the file you will see something like this. This is from my computer so don't copy.

### Main Configuration Section
### You really shouldn't change these settings unless you're a guru
###
ServerName skriptkittysecurity.cjb.net
Port 80 <-------change this
NameVirtualHost 169.147.*.*
ServerType standalone
ServerRoot /etc/httpd

After you change that you can host on a different port. Of course then you have to set firewall rules and the real fun begins.

IchNiSan
March 22nd, 2002, 11:34 PM
heh..
thepreacher is right if you are using virtual hosts....

I should have thought to ask....

if you are not, what I suggested should work for ya....

Good Luck,

IchNiSan

hogfly
March 22nd, 2002, 11:44 PM
heheh....YAY preacher!......lol

Rewandythal
March 23rd, 2002, 12:07 AM
Of course, in LinuxConf's networking section, you can edit apache's port number etc from a GUI, but the above ways work too and are probably easier on the whole. (In that youre less likely to want to play about with the other settings and f**k the whole thing up).