Set 'webmail' subdomain for all virtual domains


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Set 'webmail' subdomain for all virtual domains
# 1  
Old 08-11-2012
Set 'webmail' subdomain for all virtual domains

I'm trying to set 'webmail.' as a subdomain for all virtual domains on the server.

The webmail domain will host roundcube, which is currently installed and accessible on '/roundcube'.

I'm using CentOS6.3 and Apache web server 2.2.15

The following is my httpd.conf for RoundCube.

It was like this...
Code:
Alias /roundcube /usr/share/roundcubemail

<Directory /usr/share/roundcubemail/>
         Order Deny,Allow
         Deny from all
         Allow from All
 </Directory>

and now it's like this...
Code:
<VirtualHost *:80>
        ServerName webmail.{HTTP_HOST}
        ServerAlias webmail.{HTTP_HOST}
        DocumentRoot /usr/share/roundcubemail

        CustomLog /var/log/httpd/sites/roundcube.{HTTP_HOST}.bytes bytes
        CustomLog /var/log/httpd/sites/roundcube.{HTTP_HOST}.log combined
        ErrorLog /var/log/httpd/sites/roundcube.{HTTP_HOST}.error.log

        <Directory /usr/share/roundcubemail>
                Options +Includes -Indexes
        </Directory>
</VirtualHost>

which doesn't work!

I restarted httpd after making the change, but I'm getting "Server not found".

Thanks in advance.

Peter
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Why Entitlement CPU can't be set to same as Virtual CPU?

I read that Entitlement CPU should be set to max 75% compare to Virtual CPU. May I know the reason. I have set the Entitlement CPU = Virtual CPU on AIX . It works fine . Can you help to understand. (1 Reply)
Discussion started by: gabhanes
1 Replies

2. What is on Your Mind?

Tld.subdomain.name.subname

Way back in the early dawn of the 'net, there were two competing notations for specifying a FQDN, the familiar name.subdomain.domain.tld (such as news.bbc.co.uk) and the reversed tld.domain.subdomain.name (uk.co.bbc.news). And if memory serves, only the UK used the latter style of FQDN for a period... (0 Replies)
Discussion started by: derekludwig
0 Replies

3. Solaris

i want to set ip address to a virtual machine

hi all i want to set ip address to a vitrual machine i am using following command. but it is not ifconfig -a command output. what is wrong i dont know bash# ifconfig interfacename plumb bash# ifconfig interfacename auto-dhcp Please use code tags next time for your code and data. (4 Replies)
Discussion started by: nikhil kasar
4 Replies

4. Shell Programming and Scripting

how to grep a subdomain

When I try to grep a subdomain having three dots("."), I am getting another fully qualified domain also that looks same as the sub domain but with hyphen("-") in the place of dot(".") I just need the first result. Please help me... grep abcd.efg.xyz.info /etc/named.conf zone... (15 Replies)
Discussion started by: an00p
15 Replies

5. IP Networking

MX record for a subdomain

Hi all, I have problem regarding public subdomain delegation i have created an A record for subzone in BIND on a machine running Solaris10 Sparc to point to another machine running win2k3 as follows sub.domain.tld and www.sub.domain.tld now i want to add an MX record for mail routing for the... (1 Reply)
Discussion started by: h@foorsa.biz
1 Replies

6. UNIX for Advanced & Expert Users

wierd Blue Quartz GUI problem with Virtual domains

Hi all Sorry this will turn out to be a long post since the code is kinda long. I have a centos 4.x box running Blue Quartz management system. I manage like 70 virtual domains on this server. I asked this question at the Blue Quartz Forum site NuOnce Networks / Cobalt - BlueQuartz - CentOS... (1 Reply)
Discussion started by: mcraul
1 Replies

7. Shell Programming and Scripting

find subdomain in url

I want to find out subdomains in the url using shell script. e.g narendra.eukhost.com abc.domainname.co.uk I want to extract narendra & abc from the above urls. Please any one can suggest idea or script ? (2 Replies)
Discussion started by: nrbhole
2 Replies

8. Programming

how to know if a directory is normal one or subdomain?

there are 2 directiries under public_html directory: public_html/images public_html/pictures "images" is a normal directory (uploaded by ftp) and "pictures" is a subdomain (created in cPanel). if using cpanel, I know "pictures" is subdomain because it is displayed as subdomain in cpanel.... (1 Reply)
Discussion started by: hello20009876
1 Replies

9. Linux

domain pointer for the subdomain

hi frnds. I have created a domain called mydomain.net i have added a subdomain tim.mydomain.net , cynthia.mydomain.net and harley.mydomain.net how could i add a domainpointer for these subdomains as well. So I can run jsp on it. Does any one have... (0 Replies)
Discussion started by: naik_mit
0 Replies
Login or Register to Ask a Question