Server admin overwriting virtual host conf file

For some reason the website crashed this morning. The error log pointed to the virtual_host conf file. It crashes each time the we attempt to create an alias and then save changes.
The only way to fix it is to go back and edit the conf file and then web service starts on its own.
When I look at the file, it says: This file is auto generated by the Server Admin Web backend plugin whenever server settings are saved.
Is there a way to configure this so the file does not change?
Thanks!

The best way to do this is to take the contents of /Library/Collaboration and put it in a location accessible from your newly set up Lion install.  In Server.app, enable Wiki, and run:
     sudo wikiadmin migrate -r /Path/To/Library/Collaboration
After that, start the wiki and you should be good to go.  You should bind your Lion server to the same Directory as the Snow Leopard server, to ensure permissions and users carry across successfully.
    A.

Similar Messages

  • Prevent Server.app from repeatedly hosing .conf files?

    It seems every time I add or delete web server entries the Server.app replaces all my site .conf files, requiring a tedious manual replacing of AllowOverride from None back to All.  Is there some way to prevent it from altering the files for sites I didn't change, or a way to make All the default value? Very frustrating.
    Thanks in advance!

    Well, since apparently no one knows the answer to this, I'll share what I dug up today. 
    In the /etc/apache2 readme.txt file (I'll be happy if/when Apple releases an actual Lion Server manual that covers all of this. If I wanted to play scavenger hunt through file systems looking for miscellaneous readme files to learn how to use software I'd have stayed with Linux where that sort of thing is in vogue), there is this little nugget:
    =======================================
    sites_disabled/default_default.conf
    sites_disabled/0000_default_default.conf
    This is the configuration file template for all new default virtual hosts created by the Server application. Administrators may modify it directly. (It is installed as default_default.conf and then is renamed to 0000_default_default.conf by the Server application.)
    =======================================
    So, I changed the 0000_default_default.conf file so the AllowOverride is set to All instead of None.  Now whenever I create a new site entry (or change something so that Server.app decides to rewrite all of them for me whether I want it to or not) at least now the default is sensible and I don't have to go back and edit them all again.
    Hope that helps someone.

  • Apache server - tomcat - jk, virtual hosts, database/context.xml question?

    Hello,
    I have an web application that runs perfectly in Tomcat 5.5 when running tomcat stand-alone.
    I also have Apache HTTP server integrated with Tomcat using the jk connector and running virtual hosts in a mod_jk.conf file, which is working for html files. When I run apache and tomcat at the same time, the jsp opens but the servlet cannot get a database connection.
    To run virtual hosts and apache and tomcat, I added this host container to server.xml:
    <Host name="www.mydomain.com" debug="0" appBase="d:/WebApps/mydomain"
    unpackWARs="true" autoDeploy="true">
    <Context path="" docBase="" debug="0"/>
    </Host>
    Does anybody see anything wrong with this? Is there some reason why the context.xml (which contains the database info) is not being read?
    Any suggestions are greatly appreciated.
    Thank you,
    Logan

    Hi,
    In the docmentation of Tomcat 5.x is written that is not recommended to put <context> element in the server.xml file. Create a file in CATALINA_HOME/conf/Catalina/www.mydomain.com/ with an XML extension. For example context.xml. In files like this you should write all of your <context> elements.

  • How can I stop Lion from overwriting my apache conf files

    I am at the point of abandoning OS X forever and returning to loading NetBSD on macs.  I have never been so angry at a piece of Apple software. 
    On reboot, the server completely wiped out my apache configuration and rebuilt it.  Thankfully I had backups.
    How I can prevent Lion from interfering with my apache setup?  I will NEVER use that crappy admin tool again.  Webmin is FAR superior to it if I need a GUI tool.  I can live in the shell very happily.  I don't want to have to install a new webserver from source if I can avoid it. I just want to stop Lion from destroying my conf files.
    How do I wrest control from this monster?

    All we did was not modify httpd.conf other than adding an include at the end. If you put your content in other files, it doesn't seem to mess with them.

  • Move just wikis to new Lion server (redirect one virtual host)

    I have a bunch of services on my Mac Pro with Snow Leopard Server, including file sharing, VPN, subversion, wikis, several websites, a few webapps, etc.  I don't want to upgrade that server right now, but I'd like to try upgrading the wikis to Lion Server and Wiki Server 3.
    How could I move the wiki's to Lion Server on another machine?  They are all accessed through a seperate virtual host.
    We only have one public IP right now (I maybe could get a second public IP but don't want to just for this.)  Everything hits my router (dd-wrt device, so quite configurable) which sends port 80 (and most other ports) to my snow leopard server.
    One idea would be to have the router redirect another port (8080 or something) to the new lion server, and then put a redirect page on the original wiki address (port 80) to redirect over to 8080, which would then go to the other server.  But that's not really ideal because then the users of my wiki would see it on a new port and a lot of times ports other than 80 are blocked by firewalls (not my firewall, but firewalls closer to my users.)
    So does anyone have an other ideas on how to redirect the traffic of one virtual host to another internal machine behind NAT?   
    Separate question: any experience migrating a wiki from Wiki Server 2 to Wiki Server 3?  Did it work well?
    John

    The best way to do this is to take the contents of /Library/Collaboration and put it in a location accessible from your newly set up Lion install.  In Server.app, enable Wiki, and run:
         sudo wikiadmin migrate -r /Path/To/Library/Collaboration
    After that, start the wiki and you should be good to go.  You should bind your Lion server to the same Directory as the Snow Leopard server, to ensure permissions and users carry across successfully.
        A.

  • Virtual host & policy files

    1. How to config virtual host in weblogic server?
              2. Is Policy files needed for weblogic cluster?
              

    1. Virtual host is a new feature in WLAS6.0. It is not in WLAS451 & 510
              2. Every instance in WLAS cluster needs policy file. However, you can use
              share disk and config a global policy file so that every instance can access
              it. Personally, I prefer every instance accesses its own disk
              Hope it helps.
              Cheers - Wei
              "Andy Ping" <[email protected]> wrote in message
              news:[email protected]..
              > 1. How to config virtual host in weblogic server?
              > 2. Is Policy files needed for weblogic cluster?
              

  • Mod_rewrite not working for virtual host nor .htaccess

    I've been tearing my hair out trying to implement mod_rewrite on my Leopard Server. I have finally been able to get mod_rewrite to log what it does, but that has only shown that it DOES periodically respond to a /server_status request from the server itself, but any request to the virtual host (which is otherwise working) does not result in mod_rewrite being 'triggered.' I've tried all the usual suspects, in just about every permutation and combination: 
    1) .htaccess in all its guises and Override All;
    2) RewriteEngine On;
    3) http.conf, the virtual xxxx_80_virtualhostname.com.conf;
    4) Options All -Includes -ExecCGI +MultiViews -Indexes +FollowSymlinks;
    5) other less credible ideas gleaned from the Apple discussions and the web.
    If I had to summarise the effect, it's that
    a) mod_rewrite is on (as shown by the regular /server_status entries in the rewrite.log);
    b) xxxx_80_virtualhostname.com.conf is read when the virtual host is turned on (because the site is active and can be turned off, at will);
    c) any mod_rewrite and Options entries in the vistual host xxxx_80_virtualhostname.com.conf seem to be being studiously ignored, even though the .conf file is being read and used.
    This part of http.conf is what seems to turn on the logging:
    <IfModule mod_rewrite.c>
         RewriteEngine On
         RewriteLog /private/var/log/apache2/rewrite.log
         RewriteLogLevel 9
    </IfModule>
    Here's the section of xxxx_80_virtualhostname.com.conf:
    <Directory "/Library/WebServer/com.VirtualHostName">
         AllowOverride All
         <IfModule mod_dav.c>
              DAV Off
         </IfModule>
         Options All -Includes -ExecCGI +MultiViews -Indexes +FollowSymlinks
    </Directory>
    <IfModule mod_rewrite.c>
         RewriteEngine On
         RewriteLog /private/var/log/apache2/rewrite.log
         RewriteLogLevel 9
         RewriteRule ^/Tom.html$ /Mary.html [R]
         RewriteCond %{REQUEST_METHOD} ^TRACE
         RewriteRule .* - [F]
    </IfModule>
    This is a variant of the .htaccess file:
    RewriteEngine on
    RewriteBase /
    RewriteRule ^/Tom.html$ /MARY.html [R]
    It makes no difference whether the RewriteBase is present in the .htaccess or the xxxx_80_virtualhostname.com.conf, or both.
    No amount of pass-though [PT] or redirect [R] has any effect, either.
    I do have Lasso 8.5 installed, but the developer says that Lasso should have no effect on the proper functioning of mod_rewrite.
    mod_rewrite is working (i.e. it's on, as shown by the /server_status entries in the log and that the log is being updated), but it is also not working (in that no matter what I put into xxxx_80_virtualhostname.com.conf and/or .htaccess, there is no entry in the rewrite.log nor in the system logs).
    Hence, I'm stumped. Any suggestions would be very, very welcome.

    Never mind. I discovered that Server had created several versions of the virtual host .conf file in the sites folder (I've no idea why, when, or how it would do that). They all had different numbers and so were well hidden within the dozens of other .conf files. Once I a) found the right .conf file for the virtual host, and b) deleted the rest from the sites folder, my mod_rewrite code worked fine.
    Hence, if you find that mod_rewrite is working, but not for a particular virtual host, make darn sure that there are no errant .conf files for the domain and, if there are, that you're editing the correct one.

  • Jk_mod configuration in virtual host

    Hi,
    I met a strange problem.
    Apache has several virtual hosts. Each virtual host has its own configuration file, which is "included" into main httpd.conf .
    If I define JkMount directive in virtual host conf file inside <VirtualHost>, it does not work.
    If I move it to the httpd.conf at the top level, it works fine.
    Could you help me out to launch it on <VirtualHost> level.
    Thanks.

    Hi there,
    I just wanted to clarify my question, has anyone been able to use group authentication using OID to restrict access to websites hosted using AS10g? My website is just plain html, but maybe someone has done something similar by adding a java wrapper to perform the authentication (that seems like overkill to me but maybe there is a more elegant workaround)?
    Thanks,
    Karen

  • "No Virtual Host Found for iCal Service" help?

    I have Leopard Server installed.
    When I try to "Start iCal" in Server Admin, "No Virtual Host Found for iCal Service" pops up.
    Also, I can't configure the server in the Directory Utility. Utility claims the ip address is incorrect, even though I know it is.
    HELP!!!

    I just solved this problem by creating a Kerberos record for the iCal server in my Open Directory server's Kerberos realm. The iCal server can join your Open Directory's Kerberos realm through its Open Directory pane's 'Join Kerberos' button. (I think this could be presented better.)
    If you're not using Kerberos, then you'd probably solve the problem by selecting 'Digest' as the 'Authentication' method.

  • Virtual Hosts - almost there???

    Ok I have read just about every post on here about virtual hosts, and I picked up a copy of "Apache The difinative guide" I still can't figure this thing out. I added the NameVirtualHost line and following at the very end of the file.? Is that where it goes? Like this...
    ### The following Include directive is essential for the virtual hosts to be usable.
    Include "/etc/httpd/sites/*.conf"
    NameVirtualHost *
    <VirtualHost www.WEB1.com>
    ServerName www.WEB1.com
    DocumentRoot "STUFF"
    </VirtualHost>
    <VirtualHost www.WEB2.com>
    ServerName www.WEB2.com>
    DocumentRoot "STUFF2"
    </VirtualHost>
    <VirtualHost mail.WEB1.com>
    ServerName mail.WEB1.com
    DocumentRoot /usr/share/squirrelmail
    </VirtualHost>
    Does that look right?
    I then went into the host conf file and that now looks like this...
    # Host Database
    # localhost is used to configure the loopback interface
    # when the system is booting. Do not change this entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    192.168.111.6 www.WEB1.com
    192.168.111.6 www.WEB2.com
    192.168.111.6 mail.WEB1.com
    think thats right anyway...
    In server admin each site has been setup with www.WEB1.com, and www.WEB2.com respectivly under domain name and address is the Server IP and port 80. Under the settings all boxes in options are unchecked i.e. folder listing, performance cache...Under the Aliases tab each page has one listed www.WEB1.com for 1 and www.WEB2.com for the second.
    Now you type in a browser www.WEB1.com and you get it. You type in www.WEB2.com and you get nothing.
    What am I missing???

    Ok I have read just about every post on here about
    virtual hosts, and I picked up a copy of "Apache The
    difinative guide" I still can't figure this thing
    out. I added the NameVirtualHost line and following
    at the very end of the file.? Is that where it goes?
    Like this...
    ### The following Include directive is essential for
    the virtual hosts to be usable.
    Include "/etc/httpd/sites/*.conf"
    NameVirtualHost *
    <VirtualHost www.WEB1.com>
    ServerName www.WEB1.com
    DocumentRoot "STUFF"
    </VirtualHost>
    <VirtualHost www.WEB2.com>
    ServerName www.WEB2.com>
    DocumentRoot "STUFF2"
    </VirtualHost>
    <VirtualHost mail.WEB1.com>
    ServerName mail.WEB1.com
    DocumentRoot /usr/share/squirrelmail
    </VirtualHost>
    Does that look right?
    No this does not look right and I'm trying hard not to laugh.
    I then went into the host conf file and that now
    looks like this...
    # Host Database
    # localhost is used to configure the loopback
    interface
    # when the system is booting. Do not change this
    entry.
    127.0.0.1 localhost
    255.255.255.255 broadcasthost
    ::1 localhost
    192.168.111.6 www.WEB1.com
    192.168.111.6 www.WEB2.com
    192.168.111.6 mail.WEB1.com
    think thats right anyway...
    In server admin each site has been setup with
    www.WEB1.com, and www.WEB2.com respectivly under
    domain name and address is the Server IP and port 80.
    Under the settings all boxes in options are unchecked
    i.e. folder listing, performance cache...Under the
    Aliases tab each page has one listed www.WEB1.com for
    1 and www.WEB2.com for the second.
    Now you type in a browser www.WEB1.com and you get
    it. You type in www.WEB2.com and you get nothing.
    What am I missing???
    You can't add them manually and add them in server admin make up your mind which you want.

  • A second virtual host is deaf

    Apache 2 and Tomcat 4.0 work together here on an NT as long as httpd.conf sees the Tomcat contexts denoted as a virtual host with the same name as the host : "host1".
    So, I am trying now to use a second virtual host "host2" on my machine "host1".
    I can still reach the contexts on host1 with http://host1/things
    but should this also work? : http://host2/otherthings
    must I give my system 2 (two) ip addresses in order to have a second virtual host? Seems strange.

    yes and the link you posted before does actually mention this fairly important issue
    Of course, you can't just make up names and place them in ServerName or ServerAlias. You must first have your DNS server properly configured to map those names to an IP address associated with your server.i suspect that is you want to test on win network if you don't want to mess about with dns you might be able to do some bejiggery in the LMHOSTS file that would have the same effect.
    if you want to just test virtual hosts in general. one thing that also might work is using machine name(s) as well as the ip's
    for example if the machine is called host1 and has an address of 192.168.100.10 then i think you could set up three sites.
    the "real" (default) site.
    192.168.100.10
    127.0.0.1
    virtual host 1
    host1
    virtual host 2
    localhost
    i think these would work although the last one would only work from the server itself. see virtual hosting uses the host header passed in HTTP so as long as you can have different ones that end up going to the same place you can invent some virtual hosts for testing.

  • Virtual host _defaultVHost_ is not available

    Hi,
    I just installed FMS2 and placed in a dummy sharedBall
    application. I can connect to the app once, but every single
    connection after that one fails and I see this in the edge.00.log
    file:
    2006-09-14 17:04:53 26981 (i)2631213 Connection rejected by
    server. Reason : Virtual host _defaultVHost_ is not available. -
    2006-09-14 17:04:53 26981 (w)2641213 Connection rejected by
    server. Reason : [ Server.Reject ] : Virtual host _defaultVHost_ is
    not available. -
    And then I see this is master.00.log
    2006-09-14 17:02:00 26968 (i)2581221 Core (27589) started,
    arguments : -adaptor "_defaultRoot_" -vhost "_defaultVHost_" -app
    -inst -conf "/usr/local/macromedia/fms/conf/Server.xml" -name
    "_defaultRoot_:_defaultVHost_::". -
    2006-09-14 17:02:31 26968 (i)2581223 Core (27589) is no
    longer active. -
    2006-09-14 17:02:31 26968 (w)2581256 Core (27589)
    _defaultRoot_:_defaultVHost_:: experienced 1 failure[s]! -
    2006-09-14 17:02:31 26968 (i)2581221 Core (27726) started,
    arguments : -adaptor "_defaultRoot_" -vhost "_defaultVHost_" -app
    -inst -conf "/usr/local/macromedia/fms/conf/Server.xml" -name
    "_defaultRoot_:_defaultVHost_::". -
    2006-09-14 17:02:31 26968 (i)2581223 Core (27726) is no
    longer active. -
    2006-09-14 17:02:31 26968 (w)2581256 Core (27726)
    _defaultRoot_:_defaultVHost_:: experienced 2 failure[s]! -
    2006-09-14 17:02:31 26968 (i)2581223 Core (27589) is no
    longer active. -
    2006-09-14 17:02:31 26968 (i)2581223 Core (27726) is no
    longer active. -
    Can anyone shed some light as to why I'm getting these
    failures?
    Thanks in Advance

    Hi,
    I sent you an email, maybe it's in your spam box though.
    Thanks!Dany
    Date: Wed, 4 May 2011 03:03:49 -0600
    From: [email protected]
    To: [email protected]
    Subject: Connection rejected by server
    @http://forums.adobe.com/people/Chicohuman , if you are referring to your RTMFP issue that we are discussing on the other forum post, then that is entirely different from this one, because it is FMS 4.0 in your case (FMS 2.0 in this post's case) and its RTMFP in your case (RTMP in this case). Or are you saying you are also finding connection rejects with RTMP as well ?
    I would like to know if the original problem of connection rejects are still happening with VHost being unavailable ?
    Thank you !
    >

  • Mac OS X Leopard Server (PPC) "forgets" settings if Server Admin is left on

    I'm not sure that I'm posting this question in the right place.
    I have a QuickSilver 2001 Power Macintosh G4 (867MHz, 2x120GB PATA hard drives, 1.5GB RAM) running a fully up-to-date copy of Mac OS X Server 10.5.2. The hardware appears to be in good shape. The disks are new and I'm very certain the RAM is good. Apple Hardware Diagnostics finds no problem with the computer itself.
    Normally, this system is very reliable. It works as a primary domain controller for Windows PCs. However, if by some chance I forget to close the Server Admin application, and the machine sits for a while without use, Server Admin will claim that "no services are configured" when I return. I also saw this problem on the 10.5 and 10.5.1 releases.
    The services really do appear to stop working when this happens. I have Open Directory, DNS, DHCP and SMB configured. All four will stop responding.
    Rebooting the computer usually gets the services going again, and Server Admin will then function properly. However, I always have to reconfigure SMB to be a primary domain controller.
    Any ideas? Since this is just a test system, I did try wiping the disks and doing a reinstallation. The problem persisted.
    I think this may be PowerPC specific, as I have an Intel Mac mini set up much the same way (Mac OS X 10.5.2 server, 4GB RAM, 320GB hard disk) and it does not appear to suffer from this issue.

    Yes, I just discovered this problem on my own machine.
    I just wanted to check some settings and discovered that the behaviour of the GUI of Server Admin was somewhat "erratic": First this "no services are configured" message. Some of the configured servers were marked with the usual green "up and running" bullet, others dark grey - those were normally configured and running and clicking the appropriate line seemed to force Server Admin to check the actual state and then turned also green. But sometimes configuration pages were "greyed out", or while switching through the tabs Server Admin claimed that where were "unsaved changes" which should be saved (or discarded).
    And then SMB: this was light grey, as usual when a service is not running and clicking on it I browsed through the configuration tabs - everything seemed ok (all my settings were correctly shown, configured as PDC with right domain name etc.) - and I started the service. Then suddenly the configuration settings changed to the default settings - no more PDC, but a "standalone server" with workgroup name "WORKGROUP"...
    Looks for me, as if Server Admin lost it's "source" file for the configuration (the file in /var/db/smb.conf says, that it is automatically generated -- does somebody were the source file is stored?)...

  • Virtual hosts in apache defaults to first host

    On my MacMini I have set up apache to use virtual hosts I and use a mounted USB drive to host the sites (in my case /Volumes/Work1/www as root). I have configured 3 sites and switch on the subdomain (in my case and in order in the virtual hosts file: hbc1.helsted.net, consulting.helsted.net, store.helsted.net).
    On the MacMini I have inserted the urls in the hosts file to point at localhost for two of the entries and all work beautifully on the MacMini for those two. Anywhere else (and from the MacMini on the one not in the hosts file) the system defaults to the first entry in the virtual hosts config file (as the documentation says it will if the url is not recognized) which is displayed in the browser and which has entries in the log file.
    After some time the server occasionally refuses to serve the pages and I get a 403 error (access denied). Again not on the MacMini with the hosts file entries. Looking at the error log from apache in that case it appear that it has got the full url served as it is in the log file.
    Restarting the web share removes the 403 error (until next time).
    Any hints on how to to resolve my two issues?

    Thanks for the reply, my vhosts config file contains the following (note that the viewer in the forum browser removes the initial #es on the comment lines):
    # Virtual Hosts
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    # Please see the documentation at
    # <URL:<a class="jive-link-external-small" href="http://">http://httpd.apache.org/docs/2.2/vhosts/>
    # for further details before you try to setup virtual hosts.
    # You may use the command line option '-S' to verify your virtual host
    # configuration.
    # Use name-based virtual hosting.
    NameVirtualHost *:80
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for all requests that do not
    # match a ServerName or ServerAlias in any <VirtualHost> block.
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Volumes/Work1/www/hbc1"
    ServerName hbc1.helsted.net
    ErrorLog "/private/var/log/apache2/hbc1.helsted.net-error_log"
    CustomLog "/private/var/log/apache2/hbc1.helsted.net-access_log" common
    </VirtualHost>
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Volumes/Work1/www/consulting"
    ServerName consulting.helsted.net
    ErrorLog "/private/var/log/apache2/consulting.helsted.net-error_log"
    CustomLog "/private/var/log/apache2/consulting.helsted.net-access_log" common
    </VirtualHost>
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/Volumes/Work1/www/store"
    ServerName store.helsted.net
    ErrorLog "/private/var/log/apache2/store.helsted.net-error_log"
    CustomLog "/private/var/log/apache2/store.helsted.net-access_log" common
    </VirtualHost>
    <Directory /Volumes/Work1/www>
    Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    Message was edited by: skhelsted

  • Apache, virtual hosts & cgi-bin

    Hello all,
    I have an AL server running apache, qmail, vpopmail (&mysql), bincimap, squirrelmail.
    I've setup apache to have 2 virtual hosts :
    www.mydomain.com (with docroot /home/httpd/html/www.mydomain.com) as http & mail.mydomain.com (with docroot /home/httpd/html/mail.mydomain.com) as https.
    Everything is working fine so far, except when I ask for http://mail.mydomain.com (not https) it shows the contents of www.mydomain.com. Minor annoyance, but I'd like to fix it some time. Any suggestions ?
    My main problem is that I want to install qmailadmin in mail.mydomain.com, so I can access it via ssl, so I installed it as /home/httpd/cgi-bin/qmailadmin & made a symlink to /home/httpd/html/mail.mydomain.com/cgi-bin.
    When I try to access it (https://mail.mydomain.com/cgi-bin/qmailadmin), I get "500 Internal server error" & in error_log:
    [error] [client MY_IP] Premature end of script headers: qmailadmin
    and in ssl_request_log :
    [14/Jan/2004:17:00:45 +0200] MY_IP TLSv1 RC4-MD5 "GET /cgi-bin/qmailadmin HTTP/1.1" 674
    I've never setup cgi-bin in virtual hosts before & it's driving me nuts, any suggestions ?
    btw, qmailadmin works fine on my home server without any virtual hosts in apache...

    This isn't perfect, but it's probably pretty close to what you're looking for.  You may need to play around with some <Directory/> tags for your cgi-bin directory, or (as the example illustrates below), just put your cgi scripts in the document root for mail.mydomain.com.
    <Directory "/home/httpd/html/www.mydomain.com">
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <Directory "/home/httpd/html/mail.mydomain.com">
    AllowOverride All
    Options ExecCGI
    Order allow,deny
    Allow from all
    </Directory>
    NameVirtualHost 192.168.1.114:80
    NameVirtualHost 192.168.1.114:443
    <VirtualHost www.mydomain.com:80>
    SSLDisable
    Servername www.mydomain.com
    ServerAdmin [email protected]
    DocumentRoot /home/httpd/html/www.mydomain.com
    DirectoryIndex index.html index.htm index.cgi
    ErrorLog logs/www.mydomain.com_error.log
    CustomLog logs/www.mydomain.com_access.log combined
    </Virtualhost>
    # redirect 80 to 443
    <VirtualHost mail.mydomain.com:80>
    SSLDisable
    Servername mail.mydomain.com
    Redirect / https://mail.mydomain.com
    </Virtualhost>
    <VirtualHost mail.mydomain.com:443>
    SSLEnable
    SSLCertificateFile /home/httpd/conf/mail.mydomain.com.pem
    ServerName mail.mydomain.com
    ServerAdmin [email protected]
    DocumentRoot /home/httpd/html/mail.mydomain.com
    ErrorLog logs/mail.mydomain.com_error.log
    CustomLog logs/mail.mydomain.com_access.log combined
    </Virtualhost>
    hth,
    farphel

Maybe you are looking for

  • Follow on document display doesn't show any PO no. for Service SC

    Hi, We are using SRM 4.0 with extended classic scenario & currently on support pack 7. Follow On document display in SC doesn't show PO no. This Problem seems to be happening only for "Request external staff  SC" & "Order SC" functionality ( BBPSC03)

  • X220:Graphics problem with full screen videos

    I have got my X220 laptop last month. I am facing problem while playing youtube videos full sceen.  videos can be seen best with smaller window but there is major graphics problem with full screen. Can someone help on this? I am using Windows 7 Enter

  • Simple math calculation in numbers

    Hi I'm trying to do a simple calculation of 46.66*2 in numbers and i get a red triangle saying syntax error. Any light on this as what is wrong.

  • I deleted some backup folders and now i can't turn on backup

    i thought i was cleaning up and deleted some backup folders.  now when i click on time machine i don't have the option to turn on/off backups.  if i attempt to access it via Finder it will not allow me or another networked computer connect.

  • Emails telling me to change password

    I Received an email from "Apple" in Greenwood, CO telling I need to change my Apple password. Is this some sort of scam?