[OM] virtualhost and email error

319 views
Skip to first unread message

Dominique Claver KOUAME

unread,
Nov 26, 2010, 6:49:35 AM11/26/10
to openmeet...@googlegroups.com
Hello,
I have differents problems to solve without openmeetings. I will post
them below :
1° - Can somebody help me configure openmeetings for direct access
without keying the port number.
Something like this http://conference.mydomain.tld.
I think this will be very easy for the users than keying
http://conference.mydomain.tld:5080/

2°- Why OM send me an error message when I create an users and fill
tthe email field. The error message "invalid email". My OM server is
the secondary of my dns server which is on the same network.

Thanks more for your replay.

smoeker

unread,
Nov 26, 2010, 7:06:43 AM11/26/10
to OpenMeetings User
hi,

the port configuration has to be done within red5 server configuration
-> setting http port to 80

email errors can occur when smtp setup is incomplete AND notification
mail to new users is activated...


see ya

smoeker

On 26 Nov., 12:49, Dominique Claver KOUAME <kdcla...@gmail.com> wrote:
> Hello,
> I have differents problems to solve without openmeetings. I will post
> them below :
> 1° - Can somebody help me configure openmeetings for direct access
> without keying the port number.
> Something like thishttp://conference.mydomain.tld.
> I think this will be very easy for the users than keyinghttp://conference.mydomain.tld:5080/

greenes

unread,
Nov 26, 2010, 7:53:37 AM11/26/10
to OpenMeetings User
Hi Dominique,

For the first question...have you a web server like apache?
...if so can create a html file redirecting to:

http://conference.mydomain.tld:5080/

The second can resolve so:

1)
Create a new user without write email adress and save.

2)
Select the new user just created and write the email adress only.
Save.

greenes

On 26 nov, 12:49, Dominique Claver KOUAME <kdcla...@gmail.com> wrote:
> Hello,
> I have differents problems to solve without openmeetings. I will post
> them below :
> 1° - Can somebody help me configure openmeetings for direct access
> without keying the port number.
> Something like thishttp://conference.mydomain.tld.
> I think this will be very easy for the users than keyinghttp://conference.mydomain.tld:5080/

Piotr Fiedorow

unread,
Nov 26, 2010, 10:04:53 AM11/26/10
to openmeet...@googlegroups.com
W dniu 26.11.2010 12:49, Dominique Claver KOUAME pisze:

> Hello,
> I have differents problems to solve without openmeetings. I will post
> them below :
> 1° - Can somebody help me configure openmeetings for direct access
> without keying the port number.
> Something like this http://conference.mydomain.tld.
> I think this will be very easy for the users than keying
> http://conference.mydomain.tld:5080/
Hi Dominique.

If you want to avoid forcing users to write port number in OM URL, you
could use Apache's ModRewrite.
Just run Apache on port 80,
enable ModRewrite,
and add to, virtual host definition something like this:

RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{REMOTE_ADDR} !^127.0.0.1$
RewriteRule ^/(.*)$ http://conference.mydomain.tld:5080/$1 [L,R]

You can do the same trick if you have OM installed under eaven more ugly
URL, for example http://conference.mydomain.tld:5080/openmeetings/
Just put it into rewrite rule, and the users will be automagically
redirected from http://conference.mydomain.tld to
http://conference.mydomain.tld:5080/openmeetings/

regards
Piotr


Dominique Claver KOUAME

unread,
Nov 26, 2010, 10:30:05 AM11/26/10
to openmeet...@googlegroups.com
Thanks for your feedback, but I have'nt install apache during the
installation. Can somebody indicate me where I can change the red5
port 5080 to 80.

Thanks more !!!


2010/11/26, Piotr Fiedorow <piotr.f...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To post to this group, send email to openmeet...@googlegroups.com.
> To unsubscribe from this group, send email to
> openmeetings-u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/openmeetings-user?hl=en.
>
>

Dominique Claver KOUAME

unread,
Nov 26, 2010, 10:32:21 AM11/26/10
to openmeet...@googlegroups.com
For the second method it runs; but now I want to use Active Directory
for authentication which will avoid the creation of users manually.

Thanks !!!!

2010/11/26, greenes <zurc...@gmail.com>:

Dominique Claver KOUAME

unread,
Nov 27, 2010, 7:36:08 AM11/27/10
to openmeet...@googlegroups.com
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 weba...@mydomain.tld
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]

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /opt/red5/webapps/openmeetings/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/webconf-error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/webconf-access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

======== vhost config end of file ============

One question : Must I disable the default site ?????

2010/11/26, Dominique Claver KOUAME <kdcl...@gmail.com>:

greenes

unread,
Nov 29, 2010, 2:01:30 PM11/29/10
to OpenMeetings User
Hi Dominique,

It works on my Debian, as say Piotr Fiedorow.

At console write:

a2enmod rewrite

...so the module rewrite it is load it.

Edit:

gedit /etc/apache2/apache2.conf

...and write at the bottom:

LoadModule rewrite_module modules/mod_rewrite.so

After edit:

gedit /etc/apache2/sites-enabled/000-default

...and write at the bottom:

NameVirtualHost hola.com

<VirtualHost hola.com>
DocumentRoot /var/www/miproyecto/
ServerName hola.com
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{REMOTE_ADDR} !^192.168.198.50$
RewriteRule ^/(.*)$ http://hola.com:5080/openmeetings/$1 [L,R]
</VirtualHost>

...with your domain and lan IP or ...

So when you go in the browser:

http://hola.com

...will be directly to:

http://hola.com:5080/openmeetings

Thanks to Piotr Fiedorow, i made it
and work in Debian and XP.

Regards


On 27 nov, 13:36, Dominique Claver KOUAME <kdcla...@gmail.com> wrote:
> 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 webad...@mydomain.tld
>         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]
> 2010/11/26, Dominique Claver KOUAME <kdcla...@gmail.com>:
>
> > For the second method it runs; but now I want to use Active Directory
> > for authentication which will avoid the creation of users manually.
>
> > Thanks !!!!
>
> > 2010/11/26, greenes <zurca...@gmail.com>:

Piotr Fiedorow

unread,
Nov 30, 2010, 10:22:35 AM11/30/10
to openmeet...@googlegroups.com
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 weba...@mydomain.tld
        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




Reply all
Reply to author
Forward
0 new messages