Page 1 of 1

Hpw do I make a program run on a Port?

Posted: Wed Oct 06, 2004 4:30 pm
by William
I have seen lots of admin panels and gaming panels and just plain sites that run on a port. I want to make it so if you type: Http://www.Domain.ext:72906 or w/e it will show me a website, A panel, Anything. Like.... If you go there it says Welcome to my website or somthing. Any ideas?

Posted: Wed Oct 06, 2004 4:40 pm
by feyd
simple.. alter your httpd.conf listen directive :)

Posted: Wed Oct 06, 2004 4:42 pm
by William
Only way? Isn't it possible to let PHP do it or .htaccess? So if I make program people can download it instead of Have to download it and alter files?

Posted: Wed Oct 06, 2004 4:44 pm
by William
I dont want to change the :80 port, I meen just a website. Like.. I upload... test folder into /www/, and then I type: domain.ext:97792 or w/e and it does to that test follder. not redirect but shows info. Like cPanel has it. And other cool stuff.

Posted: Wed Oct 06, 2004 4:45 pm
by feyd
php can do it too, however you'd require the ability to run the script indefinitely, which a lot of hosts do not allow.

the Listen, Port, and BindAddress directives are server configuration level only.

Posted: Wed Oct 06, 2004 4:48 pm
by William
ok, thx

Posted: Wed Oct 06, 2004 4:51 pm
by feyd
There's also the VirtualHost option, which I forgot about..