Changing Default Path

When visiting https://ourdomain:2443 we are auto-redirected to /nodeworx. Is there a way to change this, so it goes to /siteworx instead? I would rather the 3 admins that deal with our servers to have to type /nodeworx at the end of the URL, than for our customers to have to type /siteworx to be able to login.

Also, is there a way to “add” an additional port it listens on? We have some clients that 2443 is blocked.

Thanks,

Chris

Hi Chris,

You can use port 2080 instead of port 2443.

To change the default redirect, go to /home/interworx/html/ and move index.php out of the way. Then, create a new index.php and put the following inside the file:


<?php
header( "Location: /siteworx/" );
?>

Will this be overwritten when an update occurs?

Will this be overwritten when an update occurs?

Yes, I believe it will. So, creating an index.html file in that directory with the contents:

<meta http-equiv="refresh" content="0;url=/siteworx">

Will also achieve the goal and not get overwritten.

Paul

After removing the index.php file, and putting the index.html file, when visiting https://apollo.l33tnetworks.com:2443, it throws an error stating that you’re required to login. It doesn’t redirect. Is index.html in the IndexFile directive?

thanks!

Is index.html in the IndexFile directive?

Yes it is in the DirectoryIndex directive. In the /home/interworx/etc/httpd/httpd-custom.conf file there is this entry

DirectoryIndex index.html index.php

You might have a look at /home/interworx/var/log/error.log

Pascal

i think about an error you could done. What is the authority of the index.xx file in /home/interworx/html/

You should have
Owner.group = iworx.iworx (chown iworx.iworx /home/interworx/html/index.xxx)
Authority = 600 (chmod 600 /home/interworx/html/index.xxx)

-rw------- 1 iworx iworx 1373 f?v 8 2007 index.php

Pascal

All that was already done, with the exception of the chmod to 600. when trying to access https://apollo.l33tnetworks.com:2443, a 403 error is given.

[root@apollo ~]# cd /home/interworx/html/
[root@apollo html]# ls -lh
total 12K
-rw------- 1 iworx iworx 3.6K Oct 12 2003 favicon.ico
-rw-r–r-- 1 iworx iworx 54 Sep 1 14:21 index.html
-rw------- 1 iworx iworx 1.4K Feb 8 2007 index.php.ch
[root@apollo html]# chmod 600 index.html
[root@apollo html]#

index.html should be in the DirectoryIndex, but based on what you’re seeing it seems like it may not be on your server for some reason. Check the /home/interworx/etc/httpd/httpd.conf and make sure the there is a line like this:

DirectoryIndex index.html index.php

Paul

In fact … it wasn’t :stuck_out_tongue:

Thanks for the heads up.

AddType application/x-httpd-php .php
DirectoryIndex index.php

In fact … it wasn’t :stuck_out_tongue:

What OS and arch is this box? I’l need to make sure the httpd-iworx package is corrected.

Thanks,
Paul

Just for informations, on my box it is in /home/interworx/etc/httpd/httpd-custom.conf

Yes it is in the DirectoryIndex directive. In the /home/interworx/etc/httpd/httpd-custom.conf file there is this entry

Pascal

Distribution: CentOS release 5 (Final)
Operating System: Linux 2.6.18-8.1.8.el5 (SMP)
Arch: i386