View Full Version : Changing Default Path
l33tnet
08-31-2007, 01:05 PM
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
IWorx-Socheat
08-31-2007, 01:18 PM
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/" );
?>
l33tnet
08-31-2007, 01:37 PM
Will this be overwritten when an update occurs?
IWorx-Paul
09-01-2007, 04:01 PM
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
l33tnet
09-03-2007, 10:32 PM
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!
pascal
09-05-2007, 05:12 AM
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
pascal
09-05-2007, 05:22 AM
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
l33tnet
09-05-2007, 10:46 AM
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]#
IWorx-Paul
09-05-2007, 11:54 AM
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
l33tnet
09-05-2007, 01:29 PM
In fact ... it wasn't :-P
Thanks for the heads up.
AddType application/x-httpd-php .php
DirectoryIndex index.php
IWorx-Paul
09-05-2007, 01:33 PM
In fact ... it wasn't :-P
What OS and arch is this box? I'l need to make sure the httpd-iworx package is corrected.
Thanks,
Paul
l33tnet
09-06-2007, 12:22 PM
Distribution: CentOS release 5 (Final)
Operating System: Linux 2.6.18-8.1.8.el5 (SMP)
Arch: i386
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.