Sponsored Content
Operating Systems Linux Red Hat Set 'webmail' subdomain for all virtual domains Post 302685207 by snowweb on Saturday 11th of August 2012 09:54:57 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
asadmin-list-domains(1AS)					   User Commands					 asadmin-list-domains(1AS)

NAME
asadmin-list-domains, list-domains - lists the domains in the given domains directory SYNOPSIS
list-domains [--domaindir install_dir/domains] [--terse=false] [--echo=false] list-domains lists the domains in the given domains directory. This command is supported in local mode only. OPTIONS
--domaindir directory where the domains are located. If specified, path must be accessible in the filesystem. If not specified, the domains in the default install_dir/domains directory are listed. --terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well- formatted data for consumption by a script. --echo setting to true will echo the command line statement on the standard output. Example 1: Using list-domains asadmin> list-domains List of domains: domain1 running samples not running Where: the domain1 and samples are listed and their status printed. EXIT STATUS
0 command executed successfully 1 error in executing the command asadmin-create-domain(1AS), asadmin-delete-domain(1AS), asadmin-start-domain(1AS), asadmin-stop-domain(1AS) J2EE 1.4 SDK March 2004 asadmin-list-domains(1AS)
All times are GMT -4. The time now is 02:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy