datayoung
13th August 2006, 08:14
After spend time for try to make redirect like cpanel
http://xxx.xxx.xxx/cpanel
http://xxx.xxx.xxx/webmail
here my best solution for now and for my little knowledge
First I want it work for all domain ,I don't want to copy each code to each vhosts
I decided to make it in /etc/apache2/apache2.conf
here my step/code
1.vi /etc/apache/apache2.conf
*add (before last line)
Alias /cpanel "/home/admispconfig/ispconfig/web/gocpanel/"
alias /webmail "/home/admispconfig/ispconfig/web/gowebmail/"
*above you can notice 2 points
1.Alias or alias is not matter it is work.
2.I redirect to /home/admispconfig/ispconfig/web/xxx
Why I did this? The reason is I need working on php,I can't direct outside because ispconfig took php out from normal apache state to allowed only owner want
then I using ispconfig space for run php in xxx
now go in here
cd /home/admispconfig/ispconfig/web/gocpanel
vi index.php
<?
$wh=$_SERVER["HTTP_HOST"];
echo "<meta http-equiv='refresh' content=0;url=https://www.$wh:81>";
?>
now go in
cd /home/admispconfig/ispconfig/web/gowebmail
vi index.php
<?
$wh=$_SERVER["HTTP_HOST"];
echo "<meta http-equiv='refresh' content=0;url=https://www.$wh:81/roundcubemail/index.php>";
?>
that all it have done which work perfect,and should be the answer who would like to use this redirect style,many cpanel users would be love it
*I didn't talk about http://webmail.xxx.xxx or http://cpanel.xxx.xxx or "co-domain"
I ask for you to test and let me know where will be the weak point of method
then another things I had posted somewhere for make more look like in home directory (make link of web by www,public_html for home page same as cpanel doing) ,you can find it in this forum
Thanks:cool:
http://xxx.xxx.xxx/cpanel
http://xxx.xxx.xxx/webmail
here my best solution for now and for my little knowledge
First I want it work for all domain ,I don't want to copy each code to each vhosts
I decided to make it in /etc/apache2/apache2.conf
here my step/code
1.vi /etc/apache/apache2.conf
*add (before last line)
Alias /cpanel "/home/admispconfig/ispconfig/web/gocpanel/"
alias /webmail "/home/admispconfig/ispconfig/web/gowebmail/"
*above you can notice 2 points
1.Alias or alias is not matter it is work.
2.I redirect to /home/admispconfig/ispconfig/web/xxx
Why I did this? The reason is I need working on php,I can't direct outside because ispconfig took php out from normal apache state to allowed only owner want
then I using ispconfig space for run php in xxx
now go in here
cd /home/admispconfig/ispconfig/web/gocpanel
vi index.php
<?
$wh=$_SERVER["HTTP_HOST"];
echo "<meta http-equiv='refresh' content=0;url=https://www.$wh:81>";
?>
now go in
cd /home/admispconfig/ispconfig/web/gowebmail
vi index.php
<?
$wh=$_SERVER["HTTP_HOST"];
echo "<meta http-equiv='refresh' content=0;url=https://www.$wh:81/roundcubemail/index.php>";
?>
that all it have done which work perfect,and should be the answer who would like to use this redirect style,many cpanel users would be love it
*I didn't talk about http://webmail.xxx.xxx or http://cpanel.xxx.xxx or "co-domain"
I ask for you to test and let me know where will be the weak point of method
then another things I had posted somewhere for make more look like in home directory (make link of web by www,public_html for home page same as cpanel doing) ,you can find it in this forum
Thanks:cool: