Koozali.org: home of the SME Server

FORWARD from http://www.my-server.tld/webmail

dvoracekp

FORWARD from http://www.my-server.tld/webmail
« on: January 05, 2007, 07:21:09 PM »
Hi,
I´m need help with this forward:

My webmail is located on http://www.my-server.tld/webmail when I´m forwarded to 443 (https://www.my-server.tld/webmail).

I´m need this:
When I´m prompted in Internet Explorer to adress panel: http://webmail.my-server.tld/ so I´m need to forward this to https://mail.my-server.tld/webmail

Can someone help me ?
Thanks :-)

secohanahh

forward
« Reply #1 on: January 05, 2007, 09:30:16 PM »
are you using this server as a web server too or not? If not you can use the index.html of the web server to do a redirect by a meta tag or Onload='window.location="https://...."' action on the body tag. it is located at /home/e-smith/ibay/primary/html/

dvoracekp

are you using this server as a web server too or not?
« Reply #2 on: January 05, 2007, 09:58:59 PM »
Yes, I´m using server tool on this server.

secohanahh

forward
« Reply #3 on: January 06, 2007, 12:12:18 AM »
ok if you are serving web pages with your server the previous solution doesn't work you migth consider to add virtual host on apache configuration files if you can see when you access http://server/ is the web page you are serving the default one or some other you have. try access server-manager in this way: http://server/server-manager as you can see it redirects automaticly to https://server/server-manager thats what you need. So you can custom the template of the httpd service thats is under /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/27ManagerProxyPass
and add webmail to the list. Remember that custom template should go under /etc/e-smith/template-custom/.

Ok after customizing the template you must run next commands:



/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/rc.d/init.d/httpd restart


this should work fine.
always check if the change you made has been reflected to the configuration file. /etc/httpd/conf/httpd.conf

cc_skavenger

FORWARD from http://www.my-server.tld/webmail
« Reply #4 on: January 06, 2007, 08:30:44 AM »
How about something simple like a redirect index.htm file.
I use this on a box that is only a mail server.

create a file called index.htm with the following contents:
Code: [Select]

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Redirect index.html Page</title>

<meta http-equiv="refresh" content="1; url=https://mail.my-server.tld/webmail">
 </head>

</html>


Replace the primary ibay's index.htm file with this one.

HTH

dvoracekp

...customizing the template...
« Reply #5 on: January 06, 2007, 10:21:48 AM »
I´m sorry, because I´m beginner. I´m looking for step-by-step "tutorial" where can help me, how do I setup my "forward".

It´s simple:
When I´m prompted in the Internet Explorer address bar: http://webmail.my-domain.tld I´m need to redirect to https://mail.my-domain.tld/webmail.

In "server-manager" I´m created "My StarterWebPage" where are some informations about my server. I´m nedd to "preserve" this page on place "http://www.my-domain.tld"

....and sorry, my english is poor.

cc_skavenger

FORWARD from http://www.my-server.tld/webmail
« Reply #6 on: January 06, 2007, 07:38:25 PM »
need more info.  are these two different servers or is this all on one server?  

This might have to be done in your dns server.

dvoracekp

...these two different servers or is this all on one server
« Reply #7 on: January 06, 2007, 08:13:53 PM »
Hi,
This is only one server in Gateway/Server mode.  This is all on one server.

Offline byte

  • *
  • 2,183
  • +2/-0
FORWARD from http://www.my-server.tld/webmail
« Reply #8 on: January 06, 2007, 10:38:32 PM »
Moving this topic to the SME Server 7.x forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

dvoracekp

FORWARD from http://www.my-server.tld/webmail
« Reply #9 on: January 06, 2007, 10:46:29 PM »
OK.

cc_skavenger

FORWARD from http://www.my-server.tld/webmail
« Reply #10 on: January 07, 2007, 08:40:02 AM »
sorry, out of ideas.  tried several ideas in vmware, but could not get any to work.  anyone else with any ideas?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: ...customizing the template...
« Reply #11 on: January 07, 2007, 10:31:16 AM »
Quote from: "dvoracekp"
I´m sorry, because I´m beginner. I´m looking for step-by-step "tutorial" where can help me, how do I setup my "forward".

It´s simple:
When I´m prompted in the Internet Explorer address bar: http://webmail.my-domain.tld I´m need to redirect to https://mail.my-domain.tld/webmail.

In "server-manager" I´m created "My StarterWebPage" where are some informations about my server. I´m nedd to "preserve" this page on place "http://www.my-domain.tld"

....and sorry, my english is poor.
Why would you like such a thing? Do you really need your server to be called webmail?

I think you should make a custom redirect rule, for this you will have to search the web, and perhaps you could borrow some code for this from the httpd.conf configuration code as well.
Add the rule to the templates-custom section of httpd in the template tree, mor information about this system can be found in the developer guide.
Regenerate your configuration file for the httpd server:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
Restart your server for the modifications to be loaded:
Code: [Select]
/etc/rc7..d/S86httpd-e-smith restart
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline riccge

  • **
  • 36
  • +0/-0
FORWARD from http://www.my-server.tld/webmail
« Reply #12 on: January 07, 2007, 03:44:55 PM »
Have a look at this howto from Sonora's website

http://www.sonoracomm.com/index.php?option=com_content&task=view&id=125&Itemid=32

PS:i've only read it NOT tried!
......