Using web server in Elastix

MarkosJal

Joined
Aug 9, 2007
Messages
83
Likes
0
Points
6
#1
I have several elastix servers and I want to begin to host web pages on those same servers. How can I do this and avoid the HTTPS, and use only http? Seems my tests all roll over to https then I get the security Certificate business.
 

rafael

Joined
May 14, 2007
Messages
1,454
Likes
1
Points
0
#2
try this:
Code:
vim /etc/httpd/conf/httpd.conf
Comment out

Code:
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Reboot apache

Code:
service httpd restart
Regards,

Rafael
 

MarkosJal

Joined
Aug 9, 2007
Messages
83
Likes
0
Points
6
#3
Rafael,

The strings you suggest do not appear in the file you indicated. Did you make an error in the file name or something?


Gracias,

Mark
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#4
in the new versions of Elastix, these strings were moved in

/etc/httpd/conf.d/elastix.conf

also if you put your webpages in a subdirectory of var/www/html/mydirectory

you can just exclude this directory from the rewrite by putting the red line in the previous file:

<Directory "/var/www/html">
# Redirect administration interface to https
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !(/mydirectory/*)
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Directory>
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,595
Latest member
feparra121
Top