• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

alias for openwebmail and awstats

B

bram

Guest
Hey,

We are migrating our cobalt raq 550 to plesk 7.5.1 with virtuozzo.
We have installed openwebmail. Now we want make openwebmail available for all domains on the server with the map /webmail (example: http://www.domain.com/webmail).

On our raq we place an alias in the srm.conf. How can we make an alias in plesk 7.5.1 for all domains.

ex srm.conf:

### Begin - Added by openwebmail installer ###
Alias /openwebmail /var/www/data/openwebmail/
Alias /webmail /var/www/data/openwebmail/
ScriptAlias /openwebmail-cgi /var/www/cgi-bin/openwebmail/
<Directory /var/www/cgi-bin/openwebmail/>
AllowOverride All
</Directory>
### End - Added by openwebmail installer ###

thanks for help.

kind regards,

bram
 
Originally posted by bram
Hey,

We are migrating our cobalt raq 550 to plesk 7.5.1 with virtuozzo.
We have installed openwebmail. Now we want make openwebmail available for all domains on the server with the map /webmail (example: http://www.domain.com/webmail).

On our raq we place an alias in the srm.conf. How can we make an alias in plesk 7.5.1 for all domains.

ex srm.conf:

### Begin - Added by openwebmail installer ###
Alias /openwebmail /var/www/data/openwebmail/
Alias /webmail /var/www/data/openwebmail/
ScriptAlias /openwebmail-cgi /var/www/cgi-bin/openwebmail/
<Directory /var/www/cgi-bin/openwebmail/>
AllowOverride All
</Directory>
### End - Added by openwebmail installer ###

thanks for help.

kind regards,

bram

/etc/httpd/conf/httpd.include should already have ServerAlias for webmail.<domain>.com for all domains.

Try: http://webmail.<domain>

However, if you wish to add your own directives as you mentioned, you must first create a file "vhost.conf" in the vhost/conf directory...
I'm not sure how virtuozzo is configured, but for me it's
/home/httpd/vhosts/<domain>/conf/
and for sub-domains
/home/httpd/vhosts/<domain>/subdomains/<subdomain>/conf

don't touch the httpd.conf file already present in the <domain>/conf directory. It will get re-written by Plesk.

after creating the file, you must instruct Plesk to reconfigure <domain>/conf/httpd.conf to include the new vhost.conf file:

#/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<domain>
Ref: http://download1.sw-soft.com/Plesk/Plesk7.5/Doc/plesk-7.5r-admins-guide-html/apas02.html

add your directives in vhost.conf and restart apache
 
Back
Top