Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: dvoracekp 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 :-)
-
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/
-
Yes, I´m using server tool on this server.
-
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
-
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:
<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
-
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.
-
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.
-
Hi,
This is only one server in Gateway/Server mode. This is all on one server.
-
Moving this topic to the SME Server 7.x forum, it is more appropriate there. Thanks!
-
OK.
-
sorry, out of ideas. tried several ideas in vmware, but could not get any to work. anyone else with any ideas?
-
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 (http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/devguide.pdf).
Regenerate your configuration file for the httpd server:
expand-template /etc/httpd/conf/httpd.conf
Restart your server for the modifications to be loaded:/etc/rc7..d/S86httpd-e-smith restart
-
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!