Do OS-X style Virtual Hosts work in 10.5.5?

The tips for setting up virtual hosting I've seen in these discussions suggest that OS X Virtual Hosting wasn't working before. Is it now or do I need to edit things with Terminal?

pterobyte wrote:
The instructions in the PDF you refer to do not say that you will get separate mailboxes, just how to associate multiple e-mail addresses with one account (=1 mailbox).
From the PDF: "For example, if your domain is example.com and the virtual host domain is server.com, and you want mail addressed to [email protected] to be delivered to user bob, open bob’s user record in Workgroup Manager," and "This causes mail sent to your mail server for [email protected] to be actually sent to the real mail account for user bob. "
This clearly states mail for [email protected] will go to user bob and not to a seperate mailbox.
The very last line of that section (which you didn't quote) says "Meanwhile, mail to [email protected] will go to another designated mail account."
I took that to mean that if [email protected] was also a short name under bob, then those two address = two mail boxes (so as each domain was under Virtual Hosts and not under aliases).
Re-reading it now, I'd say that sentence is rather ambiguous. I can see how it could support what you say, but also how it leads me to believe what I did.
Do you actually need separate mailboxes at all?
Yep. It's only for a few people. Consultants who work under various domains, and need/want segregated mail boxes.
I'm moving these accounts from a Communigate server where separate mailboxes are already the experence these people are accustomed to.
At any rate, multiple users it is, and the 10-user revelation is also a a big help to know that creating multiple users is not an issue.
It's a shame the GUI doesn't have Long Name and then a Domain field (which would then be used in User lists) -- kinda lame to have to write the Long Name with extra stuff to tell them apart. (without memorizing the IDs). I suppose I could manually assign ID ranges to imply my own arbitrary groupings. 1200+ = domain x, 1500+ = domain y ? Not very explicit though.
Thanks for the discussion.
-- gw

Similar Messages

  • [SOLVED] I can't get virtual hosts working. What's wrong?

    What I've decided to do is try to set up each domain name in the user folder to whom it belongs (for example: /home/username/somedomain.com/htdocs). I can't get it to work though. I keep getting an error saying that there's no index file (although there is) or that the location isn't readable (although it is). I'm trying to make it so that if the domain name matches with a virtual host section in httpd-vhosts.conf that a specific DocumentRoot will be loaded for that domain, etc. But, if the domain name points to my server but doesn't match, then I want the default location to work. I can't seem to make this work.
    This is my http.conf:
    ServerRoot "/etc/httpd"
    Listen 80
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule file_cache_module modules/mod_file_cache.so
    LoadModule cache_module modules/mod_cache.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    LoadModule include_module modules/mod_include.so
    LoadModule filter_module modules/mod_filter.so
    LoadModule substitute_module modules/mod_substitute.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule ldap_module modules/mod_ldap.so
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule log_forensic_module modules/mod_log_forensic.so
    LoadModule logio_module modules/mod_logio.so
    LoadModule env_module modules/mod_env.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule unique_id_module modules/mod_unique_id.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule version_module modules/mod_version.so
    LoadModule proxy_module modules/mod_proxy.so
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
    LoadModule proxy_http_module modules/mod_proxy_http.so
    LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    LoadModule ssl_module modules/mod_ssl.so
    LoadModule mime_module modules/mod_mime.so
    LoadModule dav_module modules/mod_dav.so
    LoadModule status_module modules/mod_status.so
    LoadModule autoindex_module modules/mod_autoindex.so
    LoadModule asis_module modules/mod_asis.so
    LoadModule info_module modules/mod_info.so
    LoadModule suexec_module modules/mod_suexec.so
    LoadModule cgi_module modules/mod_cgi.so
    LoadModule cgid_module modules/mod_cgid.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule dir_module modules/mod_dir.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule actions_module modules/mod_actions.so
    LoadModule speling_module modules/mod_speling.so
    LoadModule userdir_module modules/mod_userdir.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule rewrite_module modules/mod_rewrite.so
    #CUSTOM
    LoadModule php5_module modules/libphp5.so
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    User http
    Group http
    </IfModule>
    </IfModule>
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/default/htdocs"
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    <Directory "/srv/http/default/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <IfModule dir_module>
    DirectoryIndex index.php,index.html
    </IfModule>
    <FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
    </FilesMatch>
    ErrorLog "/var/log/httpd/error_log"
    LogLevel warn
    <IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "/var/log/httpd/access_log" common
    </IfModule>
    <IfModule alias_module>
    ScriptAlias /cgi-bin/ "/srv/http/cgi-bin/"
    </IfModule>
    <IfModule cgid_module>
    #Scriptsock /var/run/httpd/cgisock
    </IfModule>
    <Directory "/srv/http/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    DefaultType text/plain
    <IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    </IfModule>
    # Multi-language error messages
    Include conf/extra/httpd-multilang-errordoc.conf
    # Fancy directory listings
    Include conf/extra/httpd-autoindex.conf
    # Language settings
    Include conf/extra/httpd-languages.conf
    # User home directories
    #Include conf/extra/httpd-userdir.conf
    # Real-time info on requests and configuration
    #Include conf/extra/httpd-info.conf
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf
    # Local access to the Apache HTTP Server Manual
    #Include conf/extra/httpd-manual.conf
    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf
    # Various default settings
    Include conf/extra/httpd-default.conf
    #CUSTOM
    Include conf/extra/php5_module.conf
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    And here's my httpd-vhosts.conf:
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName 45.117.5.40
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/default/htdocs"
    ErrorLog "/srv/http/default/log/error_log"
    CustomLog "/srv/http/default/log/access_log" common
    </VirtualHost>
    <VirtualHost *:80>
    ServerName somedomain.com
    ServerName www.somedomain.com
    ServerAdmin [email protected]
    DocumentRoot "/home/normaluser/somedomain.com/htdocs"
    ErrorLog "/home/normaluser/somedomain.com/log/error_log"
    CustomLog "/home/normaluser/somedomain.com/log/access_log" common
    </VirtualHost>
    So, for example, I want it to be so that if I visit http://45.117.5.40 that it'll show the stuff ftom /srv/http/default/htdocs but if the domain name matches somedomain.com then I want the server to show the content from /home/normaluser/somedomain.com/htdocs.
    What currently happens is that if I visit http://45.117.5.40 or somedomain.com, they both show the same content from /srv/http/default/htdocs.
    If I comment out the first VirtualHost section, then everything stops working and I see the default "Access forbidden!" message.
    What am I doing wrong?
    Last edited by trusktr (2012-04-13 06:15:41)

    I fixed it. In case any newbs come across this, I had to add a new <Directory> section for the DocumentRoot of the virtual host. Simply adding the VirtualHost entry in the vhosts file isn't enough.
    For example, for the "somedomain.com" vhost in the example above to work, I added this to http.conf:
    #This must match with the same location as DocumentRoot in httpd-vhost.conf.
    <Directory "/home/normaluser/somedomain.com/htdocs">
    #Put whatever directives you want in here
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    Let me know if you need any clarification.
    Last edited by trusktr (2012-04-13 06:16:02)

  • Virtual hosts work only after I will restart a httpd

    This is strange. I'm using Apache server, and have problem with virtual hosts. For example I have a host:
    <VirtualHost myhost.localhost:80>
    ServerAdmin [email protected]
    DocumentRoot "/srv/http/projects/2014/myhost.pl/public_html"
    ServerName myhost.localhost
    ServerAlias www.myhost.localhost
    ErrorLog "/var/log/httpd/myhost.localhost-error_log"
    CustomLog "/var/log/httpd/myhost.localhost-access_log" common
    <Directory "/srv/http/projects/2014/myhost.pl/public_html">
    AllowOverride All
    Options Indexes FollowSymLinks
    Require all granted
    </Directory>
    </VirtualHost>
    I also added a
    127.0.0.1 myhost.localhost
    line to /etc/hosts file.
    Now when I restart my computer myhost.localhost will show me default "It works!" message, and just after "sudo systemctl restart httpd" the proper website will appear under this address. Why is that?

    Not sure what your actual hostname is; but this is probably related to DNS not being available at boot. Depending on your actual name; apache might listen on the wrong interface / source-address for this domain; which is only fixed by restarting it when you have a working dns-server.

  • Does Apache Virtual Hosting work with localhost?

    I'm a newbie trying to learn how apache web server works. I've activated apache web server on my Mac PowerBook G4, and tweaked the config file to get PHP, SSI and CGI working.
    If I type the url http://127.0.0.1/ I get the same page as http://localhost/
    If localhost is the domain name for the address 127.0.0.1, can I assign other domain names to 127.0.0.1 using apache's virtual hosting?
    Ti Powerbook G4   Mac OS X (10.4.4)  

    localhost is defined as 127.0.0.1. You can use them interchangeably.
    As for virtual hosts, sure. Apache doesn't care.
    There are two ways of running virtual hosts.
    Port-based virtual hosts use a port number other than the standard 80. They can be accessed via something like http://localhost:8000/
    Name-based virtual hosts look at the hostname header in the request to work out which site to serve. You can run any number of sites on the same port number this way, but you need to be able to control DNS so that it points to your machine.
    If you are just testing this locally you can edit /etc/hosts to add whatever hostnames you like;
    127.0.0.1 localhost my.testsite.com me.mydomain.com
    Now when you enter 'my.testsite.com' or 'my.mydomain.com' in your web browser, /etc/hosts will resolve this to 127.0.0.1 and you'll talk to your local apache server.
    Note that the localhost entries don't have to be in your domain. You can use this to override any real hostname you like.
    Of course, if you want remote users to access this site you'll need to setup something in the DNS, or edit their /etc/hosts files individually.

  • Problem with DNS and/or Virtual Host (works from inside, not from outside)

    I am running several web sites (as virtual hosts) successfully on one Xserve (192.168.200), which are accessible internally and from the Internet (via forwarding port 80 on our firewall).
    Now I am trying to add another web site (newmini.domain.com), which however is running on a Mac mini (also on the same subnet as the Xserve) at 192.168.100. What I did is make an additional entry under the Xserve's DNS for the domain (domain.com) (+ Machine..., pointing to 192.168.0.100). (I also made the necessary changes to the Mac mini's httpd and hosts configuration--no problem there).
    Now, here's the strange thing: All computers on the subnet, whose DNS points to the Xserve, can see and browse newmini.domain.com fine. No problem. The computers ask the Xserve for the IP of the host in question, the Xserve says, "192.168.100", the request goes to the Mac mini, and it serves the web site as expected.
    But this doesn't happen if the request comes from the Internet. Instead of seeing the Mac mini, the client sees the default web site of the Xserve... So it appears that somewhere, the virtual host part of the HTTP request is lost between our firewall and the Xserve.
    Any ideas? Thanks.

    It's not going to.
    You say you've setup port forwarding on the firewall. Port forwarding only cares about the port number (80). It knows nothing about the nature of the request (e.g. the hostname that the web request is for). Therefore all extenal connections on port 80 get sent to the XServe. The newmini doesn't see the traffic at all.
    If you only have a single public IP address you can only forward port 80 traffic to a single machine. Your options are to either use a different port number, or configure the XServe to proxy the connection to the mini (so now the traffic goes router -> XServe -> Mini -> XServe -> router), although that might not do what you want since it still places load and dependencies on the XServe.

  • Virtual Hosts - Configured but still not working -

    I configured virtual hosts in my portal so that multiple companies can access there portal with their own domain name. It seems to work fine when i give the a direct link to the site. But some times the original server name is written back on the urls. For example, i am in www.abc.com/portal/page/portal/some_page and it will go back to www.original_server_name.com /pls/portal/page/portal while i am browsing. It doesn't do this for all of them. Is there something i need to set up??

    Ok,
    I reinstalled a new oracle portal from scratch and followed the virtual hosts guide by dannorris.com which stated that there where errors in the oracle documentation. After following the guide, the virtual hosts work when you go to the http://virtual_host_name.com. It sends you to the "Welcome to Oracle Application Server" page. However when you go and click the link that states
    "To manage and monitor Oracle Application Server Portal, log on to Oracle Application Server Portal:
    username: portal
    password: ias_admin password specified during install"
    it kicks you back to the original host name url. Any ideas??
    I have multiple clients that need to login and see their domain names only and not the real server name.

  • Tomcat 4.0.1 & Apache 1.3.22 & mod_webapp & virtual hosts

    I have succesfully been able to get tomcat 4.0.1 and apache 1.3.22 to use mod_webapp in both linux and windows.
    First problem:
    If I don't include a trailing slash, my webapp will not display. Just a 404. mod_dir works on the apache end. Also if I access my context thru tomcat on port 8080, without a trailing slash, it will put one in for me. Only when using mod_webapp, it doesn't seem to work.
    So...
    http://localhost/examples <--- doesn't work
    http://localhost/examples/ <--- works
    Second problem:
    How can I get virtual hosts working with mod_webapp? I've successfully been using mod_jk for a while now with virtualhosts, but there are no instructions on how to do this with mod_webapp. Has anyone been able to do this? Is it even possible? Is there a way to alias a /webapp to '/' or something?
    Any help/suggestions are appreciated,
    Tom

    Unfortunately, Tomcat 4.0.1 use the port number 8180 as default. Just after the installation, you need to test it by typing:
    http://localhost:8180/
    If the index page of Tomcat appears, then you succeed.
    On linux platform the webapps directory need to be downloaded for a separate package. For downloads, please visit here:
    http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/rpms/tomcat4-webapps-4.0.1-1.noarch.rpm
    Such webapps should be installed in {TOMCAT_HOME}/webapps. After all, just restart the Tomcat server (as I know) and see the results by typing:
    http://localhost:8180/
    Click on the link to see further examples.
    Good luck!

  • Problem Virtual Hosts phpmyadmin

    I’ve been using WAMP for testing purposes for about one year now.
    Recently I purchased Dreamweaver CS5, and the Dreamweaver CS5 with PHP book from David Powers.
    According to the instructions in this book, I’ve set up a couple of virtual hosts so it is possible for me to work with site relative links. So far so good, the virtual hosts works.
    But now I can’t get to phpmyadmin through the WAMP icon and get the 404 error.
    The Alias for phpmyadmin ( standard configuration in WAMP) seems not to be working anymore.
    I’ve no idea if an alias will function with the use of virtual hosts.
    A pity that David Powers doesn’t tackle this problem in his book as well.
    Any ideas on how to solve this problem? Without creating new problems as for example no connection with the database! I’ve been searching the web for a couple of days now, so any help is more than welcome.

    While googling "apache virtual host phpmyadmin" I stumbled across this possibly helpful thread on the sitepoints.com forums.

  • Creating multiple virtual hosts on localhost failed

    For developing a website I want to setup some virtual hosts on the localhost of the OS X Server.
    Trying to setup them up via "Services -> Websites -> [+]" failed because the domain name won't be resolved.
    I creates a virtual host called "thewebsite.site" some time ago - this virtual host works well although the bullet next
    to the "thewebsite.site" within the domain name imput fields actually shows red (for my complete irritation it sometimes
    the bullet turns to green for a while - I don't know why and when because I changed nothing)

    Thanks for your explainations but it keeps frustrating me. I'll try to give an exact overview to my settings and my tries to implement your suggestions:
    Computer name: MacBook Pro
    Host: server.local
    Wi-Fi: 192.168.178.100 (static, as I said no DHCP)
    DNS-Settings:
    Forwarding Servers: 192.168.178.100
    Perform lookups for only some clients: "The server itself" and "Clients on the local network"
    Host name: server.local
    IP address: 192.168.178.100
    (no aliases)
    automatically created after setting this host name:
         Primary zone: server.local
         Machine: zone: server.local, host name: server.local, IP address: 192.168.178.100
         Nameserver: zone: server.local, Name-server: server.local
    Now I create a new host:
    Host name: thenewwebsite.site
    IP address: 192.168.178.100
    (no aliases)
    automatically created after setting this host name:
         Primary zone: thenewwebsite.site
         Machine: zone: thenewwebsite.site, host name: thenewwebsite.site, IP address: 192.168.178.100
         Nameserver: zone: thenewwebsite.site, Name-server: thenewwebsite.site
    Now going to "Web" service:
    hit the [+] button
    domain-name: thenewwebsite.site
    --> and it gives me the red bullet again saying it could not resolve this and trying to load "thenewwebsite.site" from the browser consequently fails.
    I also tried to set the machine-zone and the nameserver-zone for the thenewwebsite.site host to server.local - didn't changed anything, loading "thenewwebsite.site" fails.
    Designed in California, designed to make ist easier ??? huu ???

  • Virtual host (vod) map location of files

    I have my virtual host working in Adobe Interactive Server 4.0 however:
    inside of my virtual host:
    myvid1.domain.com
    /opt/adobe/fms/conf/_defaultRoot_/myvid1.domain.com/
    I have these directories & files
    -rw-r----- 1 fms fms 55318 Aug  2 15:12 Application.xml
    drwxr-xr-x 2 fms fms  4096 Aug  2 19:17 live
    -rw-r----- 1 fms fms 55318 Aug  2 12:49 Org_Application.xml.bak
    -rw-r----- 1 fms fms 15811 Aug  2 10:48 Org_Vhost.xml.bak
    -rw-r----- 1 fms fms 15960 Aug  2 19:25 Vhost.xml
    drwxr-xr-x 3 fms fms  4096 Aug  2 19:16 vod
    I have the vod and live directories
    however my virtual host is not pulling the data from the (vod directory)
    is there another file that needs to be changed to read from this directory?
    Any help would be great.
    thanks

    I was told by one of the Adobe people when we purchased the Interactive Server to copy the 'live' and 'vod' under the virtual host directory.
    Thank you for letting me know this is not needed here, I will get rid of them.
    The server pulls data from the following:
    /opt/adobe/fms/applications
    the 'live' and 'vod' directories the data is being pulled from here.
    The connection is successful, however I want each 'virtual host' to pull from its own data directory so the user data will be isolated and not viewable.
    How can I successfully change the 'vod' and 'live' directory on each virtual host this is my objective.
    So then I can change ownership of the 'vod' directory and create a username/password for the site owner to ftp data to the server.
    Lastly, is the main.asc (that is where the user name and password goes to prevent anyone from streaming live to the server?
    /opt/adobe/fms/applications/livepkgr
    [sysadmin@fmsvideo01  livepkgr]# ls -l
    total 24
    -rwxrwxrwx 1 fms fms  733 Jul 29 09:57 Application.xml
    drwxrwxrwx 3 fms fms 4096 Jul 29 09:57 events
    -rwxrwxrwx 1 fms fms 3941 Jul 29 09:57 main.asc     <-  -   -   -  -   (is this the security file)???
    What I want to do is incorporate this code to prevent unauthorized connections to publish live to the server.

  • Console shows web application deployed to server but not to the virtual host yet things still work, huh?

    I finally figured out how to get the virtual hosting piece to work in
    wls811. Now I have a question about the console presenting me with some web
    app information. The Web Application Modules node and the Deploy tab shows
    me the application is deployed to the server and it's Active, however the
    console indicates the web app is not deployed to the virtual host and is
    inactive. But the server is resonding to requests for each of my Virtual
    Host Names, so they must be deployed to the virtual hosts as well.
    Anyone with some ideas? Thanks.

    do you see any deployment exception in the server.log ? if nothing please post the web.xml and sun-web.xml

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

  • Http tunnelling not working with virtual host

    Hi,
    We have recently migrated our application from OC4J server to the Weblogic 11g server. There is one EJB client module which connects using t3 protocol. We are trying to use Http Tunneling for it. The server setup consists of two machines (machine1.global.com and machine2.global.com) in clustered mode. A virtual host cbs.global.com is configured to load balance across the above 2 two machine. Also Apache HTTP Server plugin is used for handling the web tier.
    For enabling tunneling, we have checked the 'Enable HTTP Tunneling' check box in the server. Also in the Httpd.conf file, we have added a block for
    <Location /HTTPClnt>
    SetHandler weblogic-handler
    </Location>
    If we give the initial context url as http://machine1.global.com:7005 or http://machine2.global.com, then it is working fine. But when we give the virtual host names - http://cbs.global.com or http://cbs.global.com:7005, it is not working. This application needs to be accessed outside the company network, so we cannot directly give the machine names and have to make it work using virtual host.
    Please advise whether any other settings need to be done for enabling the tunnelling for virtual hosts.
    Highly appreciate your help in this regard.
    Best Regards,
    Jaison
    Edited by: user13152776 on Aug 29, 2011 7:00 PM

    Thanks Peter for the reply.
    We are having multiple managed servers configured to multiple ports - 7003, 7005, 7007, etc. Please find below the mod_wl_ohs.conf file
    # NOTE : This is a template to configure mod_weblogic.
    LoadModule weblogic_module "${ORACLE_HOME}/ohs/modules/mod_wl_ohs.so"
    # This empty block is needed to save mod_wl related configuration from EM to this file when changes are made at the Base Virtual Host Level
    <IfModule weblogic_module>
    # WebLogicHost <WEBLOGIC_HOST>
    # WebLogicPort <WEBLOGIC_PORT>
    # Debug ON
    # WLLogFile /app/oracle/middleware/user_projects/domains/base_domain/ClusterLogs/weblogic.log
    # MatchExpression *.jsp
    # Dev Cluster Configuration - Port 7003
    <Location />
    SetHandler weblogic-handler
    WebLogicCluster nooslux050d.gl.2wglobal.com:7003,nooslux051d.gl.2wglobal.com:7003
    Debug ON
    WLLogFile /app/oracle/middleware/user_projects/domains/base_domain/ClusterLogs/devcluster.log
    MatchExpression *
    </Location>
    <Location /intApp>
    SetHandler weblogic-handler
    WebLogicCluster nooslux050d.gl.2wglobal.com:7003,nooslux051d.gl.2wglobal.com:7003
    Debug ON
    WLLogFile /app/oracle/middleware/user_projects/domains/base_domain/ClusterLogs/devcluster.log
    MatchExpression *
    </Location>
    # Ocean Cluster Configuration - Port 7005
    <Location /CQS>
    SetHandler weblogic-handler
    WebLogicCluster nooslux050d.gl.2wglobal.com:7005,nooslux051d.gl.2wglobal.com:7005
    Debug ON
    WLLogFile /app/oracle/middleware/user_projects/domains/base_domain/ClusterLogs/oceancluster.log
    MatchExpression *
    </Location>
    # Websi Cluster Configuration - Port 7007
    <Location /si>
    SetHandler weblogic-handler
    WebLogicCluster nooslux050d.gl.2wglobal.com:7007,nooslux051d.gl.2wglobal.com:7007
    Debug ON
    WLLogFile /app/oracle/middleware/user_projects/domains/base_domain/ClusterLogs/websicluster.log
    MatchExpression *
    </Location>
    </IfModule>
    Best Regards,
    Jaison

  • Virtual host not working

    I have a web application running and accessible through url:
    http://internal.server.com:7777/admin/faces/pages/pwd.jspx
    Now, i'd like to access it through a gateway (OHS) through URL:
    http://mycompany.com/admin/faces/pages/pwd.jspx
    so, i setup virtual host:
    <VirtualHost *:443>
      #Public URLs only
      ServerName mycompany.com
      ProxyRequests Off
      ProxyPreserveHost On
      <Location /admin/faces/pages/pwd.jspx>
        ProxyPass http://internal.server.com:7777/admin/faces/pages/pwd.jspx
        ProxyPassReverse http://internal.server.com:7777/admin/faces/pages/pwd.jspx
      </Location>
    </VirtualHost>However, i'm not able to get it work since i got 404 page not found when I access http://mycompany.com/admin/faces/pages/pwd.jspx. the log shows it seems trying to access a local file instead of we application:
    File does not exist: /instance/CommonDomain_webtier/config/OHS/ohs1/htdocs/admin
    Is there anything I'm missing.
    Thanks

    hi Aacc,
    Open your hosts file windows location: C:\WINDOWS\system32\drivers\etc\hosts and linux location:/etc/hosts
    You need admin/root rights to make changes in this file
    172.30.0.12 mycompany.com mycompany
    before making any changes take a back up of the file httpd.conf
    Since i can see you tryin to hit the url,
    http://mycompany.com/admin/faces/pages/pwd.jspx
    you need default port 80
    Open httpd.conf file
    Change Port to 80
    Listen <your ip-address>:80
    NameVirtualHost *
    <VirtualHost *:80>
    ServerName mycompany.com
    </VirtualHost>
    After this Bounce the OHS,Also check whether port 80 is open in your machine and even no other application is listening to port 80
    Lookin at your default port number,I guess ur using OAS10g,if yes then below link will help you more
    http://avdeo.com/2008/04/22/configuring-virtual-host-oracle-as10g/
    Regards
    Fabian

  • Virtual Host Mail Accounts Not Working

    Hi. I have attempted to search the discussions for an answer to this, but haven't had much luck.
    I have one server running 10.5.8. This server hosts 4 domains, 1 main and 3 virtual. Each domain needs an [email protected] email address. I have created a user in WGM named info and have created the short names for each domain: info (I assume the local domain short name doesn't need the domain.com added), [email protected], [email protected] and [email protected] I have entered the 3 virtual hosts in Server Admin-->Mail-->Settings-->Advanced-->Hosting-->Enable Virtual Hosting section.
    The issue is that when I configure Mail for each of the accounts, they are being treated as though they are aliases and not virtual host accounts. In other words, each account sees the exact same mail. When I check Server Admin-->Mail-->Maintenance-->Accounts I do NOT see the three additional virtual host accounts, so clearly they are not being created.
    This same server is also the mail server, so each domain's DNS MX record is pointing to this server. Like I said, I can send and receive mail, but it goes to all the accounts simultaneously (as aliases would) rather than individually.
    I've scoured the documentation, but cannot seem to find what I have missed here to prevent this from working as it should.
    Does anyone have experience with a successful deployment of a situation similar to this one?

    I do, indeed, have the addresses set up for one user, as you have ascertained. I suppose that I will alter the setup in the manner in which you describe. What is completely perplexing to me is that if you review Apple's documentation just after the section after describing Mail Forwarding (~pg. 37) you will see that Apple is saying I can set it up the way I have. Directly from the text as follows:
    Virtual hosting is a method you can use to host more than one domain name on the
    same computer and IP address, with overlapping mail user names.
    For instance, a mail server can receive mail transfer requests for two domains,
    mail.example1.com and mail.example.com, both of which resolve to the same IP
    address. For mail.example1.com, the server would deliver mail to “[email protected]
    to a user mailbox for “bob,” while it would also deliver mail to “[email protected]” to
    a different user mailbox. Virtual hosts are essentially the converse of local host aliases.
    Again, I state that if this is to be true, then I should have the ability to assign one Open Directory account and give that account the four addresses as above with each having a separate user mailbox. The way it is behaving now is like aliases, not virtual hosts as Apple describes.
    I'd love to understand why this is the case, perhaps I'm completely misunderstanding the text.
    Thanks again for the help, I'll just create 4 accounts, easy enough.

Maybe you are looking for

  • Printing barcode in oracle report 6i in character mode

    Hi there, I am new in oracle reports, especially in printing it in character mode. I am trying to create a report for ticketing purposes, so I have to put barcode on it. So far, I did follow this link Printing in character mode (urgent) and yes, I di

  • My Mac won't connect to the wireless internet

    My MacBook won't connect to the internet. Yet my phone and iPad will. I have tried turing the laptop on and off. Shutting the airport on and off and turning the Bluetooth on and off. And it still won't connect.

  • Dropdown menu not showing up

    Ok i've got the code in and no errors thank fully however my menu isn't dropping down is there a trick to positioning the menu right for it to register or what.  I can't seem to get the hang to this i keep practicing (third one) and this time no code

  • Mac mini running generals painfully slow compared to ibook...

    hi, i have a new mac mini 1.5 solo core with 1gb of ram. Also running it with a 19"monitor. The game seems to run painfully slow when compared to my old ibook with a 1.33ghz processor and 1gb of ram. thanks

  • Time Approval in MSS

    Hello Gurus, We  want to implement the Time Approval in MSS using the Webdynpro Application sap.com/msscatapproval/CatManagerApprove and don't want to implement workflow for this since users want to do a collective approval .....how can we implement