HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   redirect an application (egroupware) from http to https (http://www.howtoforge.com/forums/showthread.php?t=2642)

blackflag 20th February 2006 20:52

redirect an application (egroupware) from http to https
 
Hello all,
I have egroupware installed. It is accessible via http and https.
I want egroupware only accessible via https.
I tried in apache derictives:

Redirect /egroupware https://domain.tld/egroupware

but when I access the url ispconfig says in derictives that it is not supported.

So, what is the correct way to make an app only accessible via https?
Or the correct way in ispconfig to do a redirect?

tia
stefan

falko 20th February 2006 22:26

Is mod_rewrite enabled in your Apache?

blackflag 21st February 2006 01:09

yes, mod_rewrite is enabled in my apache2 configuration

falko 21st February 2006 10:06

What exactly did you add in the Apache Directives field? Just
Code:

Redirect /egroupware https://domain.tld/egroupware
?
You must at least have
Code:

RewriteEngine on
at the beginning. Have a look at this guide: http://httpd.apache.org/docs/1.3/misc/rewriteguide.html

blackflag 21st February 2006 16:09

Okay I tried this and it dont work.
I get then a message that the limit of redirect is reached for that URL.
ANd there is no discription about this limit in the link you gave.

Whats now?

can someone help

tia

stefan

blackflag 21st February 2006 16:25

should mod_rewrite enabled in ispconfig? Or in my apache2?
When in ispconfig where can I do this?

tia
stefan

till 21st February 2006 16:56

mod_rewrite must be loaded in your apache configuration and if you want to put rewrite rules in your apache directiveds window you must enable it wit putting this line

RewriteEngine on

in the apache directives window too as falko posted above.

blackflag 21st February 2006 17:04

"RewriteEngine on " have I set
but as I discribed I get the error message that the "limit of redirect is reached for that URL" when I browse http://domain.tld/egroupware

Okay I enable this fo some time:

Redirect /egroupware https://www.nopanicsystems.net/egroupware
RewriteEngine on

Please browse : http://www.nopanicsystems.net/egroupware

that you can see the error message.

what is to do?

tia stefan

falko 21st February 2006 17:35

Quote:

Originally Posted by blackflag
Redirect /egroupware https://www.nopanicsystems.net/egroupware
RewriteEngine on

It should be
Code:

RewriteEngine on
Redirect /egroupware https://www.nopanicsystems.net/egroupware

Quote:

but as I discribed I get the error message that the "limit of redirect is reached for that URL" when I browse http://domain.tld/egroupware
This happens because when you go to https://www.nopanicsystems.net/egroupware it is redirected to https://www.nopanicsystems.net/egroupware which is then redirected to https://www.nopanicsystems.net/egroupware and so on - you're in a loop. you must change your redirect rule.

blackflag 21st February 2006 17:56

I have it done it how you mean it.

RewriteEngine on
Redirect /egroupware https://www.nopanicsystems.net/egroupware


browse http://www.nopanicsystems.net/egroupware
give the error, also with https.

I really dont know what is going wrong.


All times are GMT +2. The time now is 02:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.