Koozali.org: home of the SME Server

New HOWTO available: Change httpd port

Dan Brown

New HOWTO available: Change httpd port
« on: February 09, 2002, 04:24:02 PM »
In response to several questions here about changing the listening port for the SME web server, I've written a brief document explaining how to do that in a way that doesn't break other SME functions.  This does change the listening port on both the internal and the external interfaces, though.  It's at http://www.familybrown.org/howtos/listen-port-howto.html.

Jan-Willem

Re: New HOWTO available: Change httpd port
« Reply #1 on: February 11, 2002, 05:44:38 PM »
Dan Brown wrote:
>
> In response to several questions here about changing the
> listening port for the SME web server, I've written a brief
> document explaining how to do that in a way that doesn't
> break other SME functions.  This does change the listening
> port on both the internal and the external interfaces,
> though.  It's at
> http://www.familybrown.org/howtos/listen-port-howto.html.

Hi Dan,

Using the howto document, I changed the Apache listening port to xxxxx.
After that, I cannot access my e-smith server via a secure SSH webconsole (Mindterm). When I change it back to 80, the webconsole is working again.
Any idea?

Greetings, Jan-Willem.

Dan Brown

Re: New HOWTO available: Change httpd port
« Reply #2 on: February 11, 2002, 05:57:51 PM »
Jan-Willem,

I don't know what's going on, but I have one wild guess--in the html file that calls the console, see if there's a URL in the "applet archive=" area.  If so, try changing it to explicitly reference the changed port.  This is only a guess; let me know if it works.

What happens now?

Jan-Willem

Re: New HOWTO available: Change httpd port
« Reply #3 on: February 11, 2002, 08:32:49 PM »
Dan Brown wrote:
>
> Jan-Willem,
>
> I don't know what's going on, but I have one wild guess--in
> the html file that calls the console, see if there's a URL in
> the "applet archive=" area.  If so, try changing it to
> explicitly reference the changed port.  This is only a guess;
> let me know if it works.
>
> What happens now?

 Hi Dan,

This is the full html file that calls the console:

html>




Webconsole MindTerm



Starting Webconsole jwjol.com...



This window controls the applet, the applet will be terminated once
this window is closed or you leave this page.
ARCHIVE="mindterm_ns.jar" WIDTH=0 HEIGHT=0>












I see no "applet archive=" area. Can you help me with this problem?

Thankz, Jan-Willem.


Jan-Willem

Re: New HOWTO available: Change httpd port
« Reply #4 on: February 12, 2002, 02:24:13 AM »
Oeps,

Yes, now I see the applet archive, ARCHIVE="mindterm_ns.jar". But how must I change it, so I can use a different httpd port?

Jan-Willem.

Jon

Re: New HOWTO available: Change httpd port
« Reply #5 on: February 13, 2002, 04:17:28 PM »
Dan,
Thanks for the how to.
I'm not sure if I'm expecting the correct behaviour following this mod.
After changing the port to 8080, from a workstation on my local network I reach a url which was perviously http://www.myserver.com by entering http://www.myserver.com:8080
Is this correct?
Is there a way to find out what port apache is listening for? ( like a version switch)

After following the how to I can still get to the url without having to enter the :8080 so I think something is wrong. I'm guessing its still listening to 80. If I add the :8080 I get a not found

Hope you can help

Jon

Dan Brown

Re: New HOWTO available: Change httpd port
« Reply #6 on: February 13, 2002, 04:37:09 PM »
Forgot two things in the howto:  Run these commands:

/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/e-smith/events/actions/restart-httpd-full

That should take care of it.

Jon

Re: New HOWTO available: Change httpd port
« Reply #7 on: February 13, 2002, 04:56:19 PM »
Dan,
I now get the behaviour I expected as noted in the previous email however I cannot access the e-smith manager.
I was using http://www/server-manager
which I changed to http://www/server-manager:8080 but i get the page not found error.

Jon

Jon

Re: New HOWTO available: Change httpd port
« Reply #8 on: February 13, 2002, 04:58:53 PM »
Arghhhh
Just found it
http://esmithserver:8080/server-manager

Thanks Dan

Jan-Willem

Re: New HOWTO available: Change httpd port
« Reply #9 on: February 13, 2002, 10:22:44 PM »
Dan Brown wrote:
>
> Forgot two things in the howto:  Run these commands:
>
> /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
> /etc/e-smith/events/actions/restart-httpd-full
>
> That should take care of it.

Dan,

After runnings these commands, I still can not access the webconsole (ibay).
When I change the port back to 80, I can access the webconsole.
Any idea??

Jan-Willem.

Dan Brown

Re: New HOWTO available: Change httpd port
« Reply #10 on: February 13, 2002, 10:58:20 PM »
I'm afraid I'm about out of ideas.  What happens when you try?

Jan-Willem

Re: New HOWTO available: Change httpd port
« Reply #11 on: February 13, 2002, 11:19:41 PM »
> Dan Brown wrote:
> I'm afraid I'm about out of ideas.  What happens when you try?

The page cannot be displayed.

Jan-Willem