W dniu 27.11.2010 13:36, Dominique Claver KOUAME pisze:
Morning everybody and thanks for your help. Just make a summary of
what I have tested to solve the vhost problem.
Some of you tell me to change http-port of red5. I have done the changes in :
/opt/red5/conf/red5.properties
/opt/red5/webapps/openmeetings/config.xml
but no success.
Now I want to test apache2 rewrite. below I will put my vhost config
file; can somebody tells me if it's correct or no.
==== vhost config =====
<VirtualHost *:5080>
ServerAdmin [email protected]
ServerName webconference.mydomain.tld
ServerAlias conference.mydomain.tld
DocumentRoot /opt/red5/webapps/openmeetings
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{REMOTE_ADDR} !^127.0.0.1$
RewriteRule ^/(.*)$ http://conference.mydomain.tld:5080/$1 [L,R]
..........
Hi Dominique:
1.
If you changed red5 port to 80, you'd have to run red5 as root (because
on Unix, Linux etc. proceses binding to ports with numbers lower than
1024 requires root privileges). I think, that it is not a good idea to
run red5 process as root (security etc.).
Applications such as Apache, after binding to port 80 lowers its
privileges by becoming a normal user (eg. in Debian it becomes www-data).
I have no idea, how to do such trick in RED5/Tomcat.
2. Apache
In the configuration you sent there is a problem:
There is <VirtualHost *:5080> but it should be <VirtualHost *:80>
because Apache is supposed to listen on port 80, not 5080 (there is RED5
on 5080).
If you examine the rewrite condition, you'll find, that it says:
- if the connection comes to port 80 - RewriteCond %{SERVER_PORT} ^80$
- and if it doesn't come from localhost (the server machine itself) -
RewriteCond %{REMOTE_ADDR} !^127.0.0.1$
- redirect the browser to RED5 on 5080 - RewriteRule ^/(.*)$
http://conference.mydomain.tld:5080/$1 [L,R]
regards
Piotr
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-user?hl=en.