Goodmorning everybody…
I’ve just installed virtualmin GPL for the first time and it seems fantastic…but I’ve just a couple of important problems…!!
- I don’t understand…the default directory for website files for a virtual server (lets say for example that the domain is sardegnanuova.com is /home/sardegnanuova/public_html??? Is this correct?
If it is I can’t understand why when, just to try, I upload a file as index.html it doesn’t change anything, and, going from the web (www.sardegnanuova.com) it returns always the same message (Index of /
Name Last modified Size Description
Apache/2.2.3 (CentOS) Server at www.sardegnanuova.com Port 80)…
More than this when I try to access to ftp (ftp://www.sardegnanuova.com) I go in a completely different directory (I don’t know witch directory it is…:P) containing folders “.spamassasin” “.usermin” “Maildir”…of course there’s no public_html… HEELP!!! - Other problem is the configuration of aliases in Apache…I would like that webmail.sardegnanuova.com redirect me on “http://sardegnanuova.com:20000” but it doesn’t…Same for other aliases…I attach you the part of the content of httpd.conf (that I haven’t modified manually) about virtual server sardegnanuova.com:
<VirtualHost 192.168.0.81:80>
SuexecUserGroup "#501" "#502"
ServerName sardegnanuova.com
ServerAlias www.sardegnanuova.com
ServerAlias webmail.sardegnanuova.com
ServerAlias admin.sardegnanuova.com
ServerAlias lists.sardegnanuova.com
DocumentRoot /home/sardegnanuova/public_html
ErrorLog /var/log/virtualmin/sardegnanuova.com_error_log
CustomLog /var/log/virtualmin/sardegnanuova.com_access_log combined
ScriptAlias /cgi-bin/ /home/sardegnanuova/cgi-bin/
ScriptAlias /awstats /home/sardegnanuova/cgi-bin
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/sardegnanuova/public_html>
Options -Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory /home/sardegnanuova/cgi-bin>
allow from all
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.sardegnanuova.com
RewriteRule ^(.) https://sardegnanuova.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.sardegnanuova.com
RewriteRule ^(.) https://sardegnanuova.com:10000/ [R]
<Files awstats.pl>
AuthName "sardegnanuova.com statistics"
AuthType Basic
AuthUserFile /home/sardegnanuova/.awstats-htpasswd
require valid-user
</Files>
PerlRequire /etc/webmin/virtualmin-google-analytics/apachemod.pl
PerlOutputFilterHandler Virtualmin::GoogleAnalytics
RedirectMatch /cgi-bin/mailman/([^/])(.) https://sardegnanuova.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
RedirectMatch /mailman/([^/])(.) https://sardegnanuova.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
Alias /pipermail /var/lib/mailman/archives/public
</VirtualHost>
Thanks previously for your answer to everybody…
Luca Prete