hello , I need 2 Virtual Hosts on OMV , I tried to this , I want to know if it is correct , because when I try to activate the second web site , i have this error :
Code
/etc/init.d/apache2 reload
Reloading web server config: apache2[Mon Oct 29 16:32:07 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Mon Oct 29 16:32:07 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
1: I activated the plugin , and have enabled these options
http://imageshack.us/photo/my-images/16/multiplehost.jpg/
2 : I created the Web folder = Web
3: I created two sub-folder in Web directory - (mysite1.com and mysite2.com)
4: i Created 2 text file in etc/apache2/sites-available (mysites1.com ) and (mysites2.com)
each file has this code : mysites1.com
Code
#
# http://mysites1.com
#
<VirtualHost *:80>
UseCanonicalName Off
DirectoryIndex index.html index.htm index.php index.cgi index.pl
ServerSignature Off
DocumentRoot /media/7e342054-8ff6-496a-8026-23e944809f23/Web/mysites1.com/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
ErrorLog ${APACHE_LOG_DIR}/omv-website-vhost_error.log
CustomLog ${APACHE_LOG_DIR}/omv-website-vhost_access.log combined
SuexecUserGroup Web users
<FilesMatch \.php$>
FcgidWrapper /var/www/omv-website-vhost/php-fcgi .php
Options +ExecCGI
SetHandler fcgid-script
</FilesMatch>
<Directory /media/7e342054-8ff6-496a-8026-23e944809f23/Web/mysites1.com/>
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Alles anzeigen
mysites2.com
Code
#
# http://mysites2.com
#
<VirtualHost *:80>
UseCanonicalName Off
DirectoryIndex index.html index.htm index.php index.cgi index.pl
ServerSignature Off
DocumentRoot /media/7e342054-8ff6-496a-8026-23e944809f23/Web/mysites2.com/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
ErrorLog ${APACHE_LOG_DIR}/omv-website-vhost_error.log
CustomLog ${APACHE_LOG_DIR}/omv-website-vhost_access.log combined
SuexecUserGroup Web users
<FilesMatch \.php$>
FcgidWrapper /var/www/omv-website-vhost/php-fcgi .php
Options +ExecCGI
SetHandler fcgid-script
</FilesMatch>
<Directory /media/7e342054-8ff6-496a-8026-23e944809f23/Web/mysites2.com/>
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Alles anzeigen
ssh connection
I need mode rewrite for my Wordpress , so:
ssh connection
This is correct ?