Apache mod_rewrite, htaccess and virtual host

Does not appear that the htaccess file is doing anything at all; I tested with a 301 redirect and even put some random nonsense in it in hopes to provoke a server error and nothing.
httpd.conf : http://pastebin.com/36qFCg5q
httpd-vhosts.conf
<VirtualHost *:80>
    DocumentRoot "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app"
    ServerName xxx.com
    ServerAlias www.xxx.com
<Directory "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app">
    Options All Includes Indexes
    Order allow,deny
    Allow from all
    AllowOverride All
</Directory>
ProxyRequests Off
<Proxy *>
Options All Includes Indexes
Order allow,deny
Allow from all
AllowOverride All
</Proxy>
ProxyPass / http://www.xxx.com:8080/
ProxyPassReverse / http://www.xxx.com:8080/
</VirtualHost>
jwindhall.conf:
<Directory "/Users/jwindhall/Railo/tomcat/webapps/ROOT/dentist_app">
Options Indexes MultiViews FollowSymlinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

The question etresoft was asking was around what goal or end or configuration you were trying to achieve here, and not who you might be.  With some background on the problem and on the particular goal, we might be able to provide you with a more direct solution, or debug the error. 
It looks like you're trying to run some Tomcat stuff.  Something like this?
Though that articile doesn't indicate it, the provided set-up there looks to be specific to OS X client.  Are you running OS X Server, or OS X client.  And in either case, which version?   (The management user interfaces do vary here, both by client and server, and by version.)
The article also looks to be for 10.6 or earlier, or it presumes that you have Java installed.  That's not the default, so that's something you'll need to establish.
Apache redirects do work on OS X and OS X Server.  If you're just testing that, get rid of Java and Tomcat and the rest (from your configuration test) and test just the URL redirects.
Apache is also sensitive to file protections and ownerships, as it strives to avoid allowing an attacker at your whole system (by default), though those protections can be overridden.
As a first step toward troubleshooting your current configuration, invoke the Apache configuration test on your system and see if it tosses any errors, and also check the Apache server logs for relevant errors.  The logs are usually in the /var/log/apache2 directory, though that can be changed.  This'll make sure the core giblets are working.  The next steps would usually then involve checking the protections on the web directories, and then testing Java and Tomcat individually.
OS X Server is a little more simple to set up and (mostly) avoids needing to access the configuration files, and the directories and related are IMO a little easier to deal with; you're using Server Admin.app or Server.app (depending on the OS X Server version) to manage all that, and not a text editor.
And you may already be aware of this; do not try to use a GUI editor to edit the configuration files.  TextWrangler will work here, but most other GUI editors won't.  Using a command-line editor is more common; nano or vim or emacs or such.  FWIW.

Similar Messages

  • CFCs and virtual hosts on Apache

    I'm running Apache 2.0.x and using a virtual host to remap
    the document root to a separate drive (d:\public\test)
    When I try to use remoting, I get the error:
    [RPC Fault faultString="File not found:
    C:\WebServer\Apache2\htdocs\test\test.cfc"
    faultCode="Server.Processing" faultDetail="null"]
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    Now the htdocs directory is the primary document root for the
    server, but this is being overridden by the specific document root
    change in the virtual host entry. Regular CF pages that reference
    this component work fine, but flex is throwing a fit.
    Any ideas?
    Chris

    try cross domain xml in server root..may be it will work.
    have a look on cross domain help page :
    http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

  • Apache Bridge and Virtual Hosts?

    Hi,
              I'm running Apache 3.1.19 with the bridge to two clustered 'Weblogic
              5.1sp8's - Apache is configured for several virtual hosts.
              Is it better to run several instances of Apache each with its' own bridge -
              not entirely sure how the bridge is written/operating so the concern is
              that if the bridge blocks for one virtual host, it does so for all?
              How can I find out more about the bridge and how it's written? I've also
              heard mention of being able to configure the bridge to do weighted
              load-balancing rather than simple round-robin - can't find this in the
              bridge documentation though - can anyone help?
              Thanks!
              yrs James
              

              James,
              As my understanding of Apache plugin modules, it only supports
              round-robin load balancing at this time.
              Brian
              "pipex news" <[email protected]> wrote:
              >Hi,
              >
              >I'm running Apache 3.1.19 with the bridge to two clustered
              >'Weblogic
              >5.1sp8's - Apache is configured for several virtual hosts.
              >
              >Is it better to run several instances of Apache each with
              >its' own bridge -
              >not entirely sure how the bridge is written/operating
              > so the concern is
              >that if the bridge blocks for one virtual host, it does
              >so for all?
              >
              >How can I find out more about the bridge and how it's
              >written? I've also
              >heard mention of being able to configure the bridge to
              >do weighted
              >load-balancing rather than simple round-robin - can't
              >find this in the
              >bridge documentation though - can anyone help?
              >
              >Thanks!
              >
              >yrs James
              >
              >
              >
              >
              

  • Help with apache and virtual hosts

    I hope someone can help me I had installed shared point for testing and learning it. I had setup alternative mapping and know I want to add sub domain to my Apache web server. So I have sub domain redirecting back to share point. Also mine website is being redirected to share point. How I can have sub domain redirected to share point and main website go to my drupal ? I had created virtual host for main website but I still  get redirected to share point.

    I have this and the problem is that main domain goes to share point.
    <VirtualHost xxxx.us:80>
    ServerName xxxx.us
    ServerAlias www.xxxx.us
    DocumentRoot "/srv/http"
    ServerAdmin [email protected]
    ErrorLog "/var/log/httpd/error_log"
    CustomLog "/var/log/httpd/access_log" common
    <Directory />
    Options FollowSymLinks
    AddHandler cgi-script .cgi .pl
    Options ExecCGI Indexes FollowSymLinks MultiViews +Includes
    AllowOverride None
    Order deny,allow
    Deny from all
    </Directory>
    </VirtualHost>
    <VirtualHost sharepoint.xxxx.us:80>
    ServerName sharepoint.xxxx.us
    ServerAlias sharepoint.xxxx.us
    DocumentRoot "/srv/http"
    ServerAdmin [email protected]
    ErrorLog "/var/log/httpd/error_log"
    CustomLog "/var/log/httpd/access_log" common
    RewriteEngine On
    RewriteLog "/var/log/httpd/rewrite_log"
    RewriteLogLevel 9
    RewriteCond %{HTTP_HOST} !^(sharepoint\.)?hebe\.us$
    RewriteRule ^(.*)$ http://hebe.us$1 [L,R=301]
    ProxyRequests On
    ProxyPreserveHost On
    ProxyVia full
    ProxyPass / http://192.168.0.38/
    ProxyPassReverse / http://192.168.0.38/
    </VirtualHost>
    Last edited by tritron4 (2013-06-19 17:01:08)

  • Weblogic, Apache and Virtual Hosts

    Hello,
    I have apache set for name-based Virtual Hosting (I'm serving 2 domains from the
    same IP) and am running into the following problem:
    Even though DOMAIN 2 has its own document root specified in the Apache httpd.conf
    file, that is different than the document root for DOMAIN 1, both URLs are serving
    up the same index.jsp from WebLogic (v. 5.1).
    If I change the httpd.conf entry for DOMAIN 2, to serve up index.html instead
    of index.jsp, it works????
    Is there some setting I need in weblogic.properties???
    Any help would be appreciated!!
    Thanks,
    Mark Mangano

    Hello,
    I have apache set for name-based Virtual Hosting (I'm serving 2 domains from the
    same IP) and am running into the following problem:
    Even though DOMAIN 2 has its own document root specified in the Apache httpd.conf
    file, that is different than the document root for DOMAIN 1, both URLs are serving
    up the same index.jsp from WebLogic (v. 5.1).
    If I change the httpd.conf entry for DOMAIN 2, to serve up index.html instead
    of index.jsp, it works????
    Is there some setting I need in weblogic.properties???
    Any help would be appreciated!!
    Thanks,
    Mark Mangano

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

  • Apache: sharing assets between virtual hosts best practise

    Hello,
    We've got a few virtual hosts on our server that share certain assets. I'm looking for a the best way to accomplish this. If it were just me I would use Alias directives, but I would like it to be as transparent as possible for our web designer. Years ago we use to do this with WebStar by sharing one document root. But there's no excuse for that these days.
    Here are some of the ideas I'm considering:
    1. Put hard links to each shared directory in the document root of each virtual host and not bother with Alias directives.
    2. Same as above but include corresponding aliases in the server's config.
    3. Same as 1 and 2, but use symbolic links instead of hard links. Not sure about this option since the ftp client will know they are links. But maybe that doesn't matter(?).
    Thanks for any thoughts.
    Cole

    orangekay wrote:
    I don't understand what kind of "transparency" your designer requires. It shouldn't make any difference where the files live so long as they're accessible.
    The designer will likely not understand that shared assets will not actually be stored in the document root, but in another directory all together. Then I say, "Well don't worry. Just pretend they're in your document root. The server will find them because of the Alias directives I've added to Apache's configuration."
    I'm trying to avoid this conversation. I work with artists and programmers. Part of my job requires finding common ground between peoples' various technical skill sets.
    I'll try symlinks and Aliases. After reading the ln man page again I see: "Hard links may not normally refer to directories and may not span file systems."
    Cole

  • How to Install Physical and Virtual Host

    I am getting licensing issues after I installed Essentials 2012R2 on a physical machine and then used the same license to virtualize it.  It's saying my physical machine needs to hold all the FSMO roles in which my virtual machine is hosting those roles.
    I read that Microsoft allows you to use the Essentials license for the physical and virtual server.  Is that correct? 
    Is there a specific service I need to remove on the physical machine in order for these errors to stop?  I still have the Windows Server Essentials Experience service installed. Is that what needs to be removed?
    Thanks,
    Doug

    Hi Doug,
    There is an article that provide details of licensing for Windows Server 2012 R2 Essentials. Please refer to and check if can help us to understand licensing for Windows Server 2012 R2 Essentials better.
    Understanding Licensing for Windows Server 2012 R2 Essentials and the Windows
    Server Essentials Experience role
    Please also refer to following article and check if can help you.
    Customize Deployment - Windows Server Essentials
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Http deny and virtual hosts

    solaris 8 ips sp4 gw and server on 1 host
    got 5 domains en added these to the platform.conf
    and using ssl cert to access these domains.
    everything works fine but when i add the url the user
    can access only in the domain policy url list and deny the rest i get a 502 gateway error ! log gateway says
    sessionid not allowed ! what's wrong ?
    adding http://domain.sub.com in allow list doesn't help

    Hi,
    Is there a "*" in the deny URL list. Looks like portal gateway checks deny list and denys all the URL's
    without even the virtual host. Please try removeing "*" from the deny list.
    Hope this helps.
    Regards,
    Raj_indts
    Developer Technical Support
    Sun Microsystems http://www.sun.com/developers/support

  • Wiki and virtual hosts

    Is there any way to limit the visibility of group wikis when using virtual hosts? Let me explain...
    We have two public sub-domains that map to two virtual hosts on a single Leopard server box:
    site1.example.com
    site2.example.com
    Each site has it's own wiki that is up and running just fine.
    The problem is when we visit
    site1.example.com/groups
    we see the wikis for both site1 and site2 listed. When we click site1 we get through to the site1 wiki. When we click site2, we get a file not found error. The opposite happen when we visit site.example.com/groups.
    What I'd really like is for site1.example.com/groups to only list the site1 wiki and site2.example.com/groups to only list the site2 wiki.
    Is this possible?

    I managed to do this by a 'cheap and nasty' method!
    The group listing is created by the file
    /usr/share/wikid/lib/appletemplates/grouplisting.xsl
    it is the ONLY xsl file that cannot be overridden by a custom wikitheme, but it can be edited.
    Within this file you will find an unordered list,
    <ul class="contentlist">
    </ul >
    if you replace this by
    <ul class="contentlist">
    <script type="text/javascript">
    if(location.hostname=='www.foobar1.com'||location.hostname=='foobar1.com')
    document.write('<li><a href="http://www.foobar1.com/groups/group_name1/"><span class="img"><img src="/collaboration/images/group.jpg" alt="" width="32" height="32"/></span><span class="title">title1</span><span class="description">A website that ...</span></a></li>');
    document.write('<li><a href="http://www.foobar1.com/groups/groupname2/"><span class="img"><img src="/collaboration/images/group.jpg" alt="" width="32" height="32"/></span><span class="title">title2</span><span class="description">Another website </span></a></li>');
    document.write('<li><a href="http://www.foobar1.com/groups/groupname3/"><span class="img"><img src="/collaboration/images/group.jpg" alt="" width="32" height="32"/></span><span class="title">title3</span><span class="description">A final website .</span></a></li>');
    else if(location.hostname=='www.foobar2.com'||location.hostname=='foobar2.com')
    document.write('<li><a href="http://www.foobar2.com/groups/group_name4/"><span class="img"><img src="/collaboration/images/group.jpg" alt="" width="32" height="32"/></span><span class="title">title4 </span><span class="description">The Home site of </span></a></li>');
    document.write('<li><a href="http://www.foobar2.com/groups/group_name5/"><span class="img"><img src="/collaboration/images/group.jpg" alt="" width="32" height="32"/></span><span class="title">title5</span><span class="description">An online t;/span></a></li>');
    else
    document.write('<li><a href="http://www.foobar3.info/groups/group_name6/"><span class="img"><img src="/collaboration/images/group.jpg" alt="" width="32" height="32"/></span><span class="title">title6 </span><span class="description">The Home site .</span></a></li>');
    document.write('<li><a href="http://www.foobar3.info/groups/group_name7/"><span class="img"><img src="/collaboration/images/group.jpg" alt="" width="32" height="32"/></span><span class="title">title7</span><span class="description">A wiki for .</span></a></li>');
    </script>
    </ul>
    Save and restart the webserver from within serveradmin and it should appear.
    OK, so it doesn't automatically respond to new groups as you create them but it's easily updated and, if you follow the instructions from a thread I started on wiki_entry tags you COULD update it from within an admin wiki
    I don't claim it's pretty, or that it will survive apple's update once they have sorted out their inability to cope with virtual hosting, but it works.

  • Web App and Virtual Host and Clustering

              Hi,
              How are you doing?
              What is the best way to deploy a web application using a virtual host on a clustered
              environment?
              Here is what we are doing:
              o Deploy the web application on the virtual host
              o Deploy the virtual host on the cluster
              o Make the web appliation, the default application on the virtual host
              This seems to work, but I have additional questions?
              In the above deployment, looking at the deploy tab for the web application shows
              that the application is deployed to both the cluster as well as the virtual host.
              Even though we didn't explicitly deploy to the cluster! What happens if we deploy
              explicity (i.e., target) the web application to the cluster?
              What other approaches / configurations are you guys using?
              Thank you so much,
              -Bart Simpson
              

    Never mind, I think I have a solution. Even though e-docs say that DefaultWebApp attribute at virtual host level was deprecated as of WL 8.1 (inline with Servlet 2.3 specification) one can directly edit config.xml file and add the attribute.
    For instance, here is an example to set webapp APP1 as a default webapp for virtual host vhAPP1:
    <VirtualHost
    Name="vhAPP1"
    DefaultWebApp="APP1"
    ... />

  • Servername and virtual host name is the same - how to handle this

    Hi,
    I set up a server with the hostname yxzwiki.org
    In the Server app under Websites this domain points to /Sites
    In this /Sites directory is all my content (several Wikis) and also the phpmyadmin.
    What is the issue now?
    I want this xyzwiki.org not only as the hostname but as a virtual host as well.
    So I have the following entry in the corresponding conf file.
    <VirtualHost *:80>
      ServerName xyzwiki.org
      ServerAdmin [email protected]
      DocumentRoot "/Sites/xyzwiki/xyzenwiki"
      DirectoryIndex index.html index.php
    How can I handle this?
    xyzwiki.org shows the content of /Sites/xyzwiki/xyzenwiki but I cannot e.g. get access to http://xyzwiki.org/phpmyadmin
    Any ideas?
    Thanks
    Tristan

    I guess I have talk more about this issue that people got the chance to help
    xyz.org is the host name of our server.
    The intention of this server is to run a wiki via mediawiki.
    When we first set up the server we planned to have three language versions and the corresponding wikis were found on the server under
    en.xyz.org for the English version
    de.xyz.org for the German and
    es.xyz.org for the Spanish version
    But then we decided ONLY to concentrate on the English version and so prefix en became deprecated and we only want the domain xyz.org that shows the English Wiki.
    The English wiki is on our server under /Sites/xyz-wiki/xyz-enwiki
    In the Server.app I defined /Sites as the server website and I have a virtual host for xyz.org AS WELL that defines /Sites/tangowiki/tangoenwiki.
    This seems to overrule the entry in the server.app as xyz.org shows the content of /Sites/xyz-wiki/xyz-enwiki
    As I have other "services" as well under /Sites, e.g. phpmyadmin it is not possible for me with xyz.org/phpmyadmin to get to this service.
    So what I am looking for is a trick that I can keep the /Sites directory as the main directory for xyz.org. I was thinking of a symlink for the index.php from /Sites/xyz-wiki/xyz-enwiki and to remove the virtual host entry but this does not work. Any other ideas.
    Cheers
    Tristan

  • FMS3 Linux and virtual host

    Instaled FMS3 on my Linux box, but some strange things happen
    with virtual host configuration:
    1. add virtual host directory to /conf/_defaultRoot_ (just
    making a copy of _defaultVHost_). It contains all needed files -
    Application.xml and Vhost.xml with default settings
    2. Restart the server
    When I login into admin console, new vhost appears in the
    list, but it's impossible to connect to it, or just restart it.
    Permissions are ok.
    Am I forgetting something?

    I finnaly get it - FMS starts fmscore process for each vhost,
    but after about 5-7 minutes of work every process quits. Logs don't
    say anything, what can it be?
    /opt/adobe/fms/fmscore -console -adaptor _defaultRoot_ -vhost
    test.com -ap -conf /opt/adobe/fms/conf/Server.xml -name
    _defaultRoot_:test.com:::
    Adobe Flash Media Server (Core)Console mode.
    Host: localhost IPv4: 127.0.0.1
    Starting admin app on core (4651).
    Core (4651) connecting to admin.
    Core (4651) connected to admin.
    Core (4651) connection to admin accepted.
    Core (4651) sending register cmd to edge.
    Core (4651) disconnected from edge.
    Core (4651) disconnecting from admin.
    Unloaded application instance admin

  • Clone and "virtual host"

    I used rapid clone (note 230672.1) to clone 11.5.10.2.
    Site uses big IP and a "virtual address" for the cloned 11i logon page.
    I am able to logon but get an error using Administrator -> Security - User Define
    "load: class oracle/apps/fnd/formsclient/formsLauncher class not found"
    Anyone encountered this before?
    Metalink notes don't help.

    Hi Chirag
    Do one thing
    1) Start the vncserver as appsuser
    2) You will get a value in my case test.erp.com:1
    3)open a vncserver session from a client machine
    4) set the display there export DISPLAY=test.erp.com:1.0
    5) Now go to the xml file APPL_TOP/admin
    6) search for display
    7) put the value that u have set for the display (test.erp.com:1.0)
    8)run autoconfig
    hope this will help

  • Https and virtual host redirect configuration

    Hello,
    IAS10EE
    Only one of a number of mod pl/sql applications needs to be available from the internet via https - https certificate has been installed and is working.
    I've amended the default ssl.conf to try to redirect all https traffic to the one application see below
    <VirtualHost *:443>
    # added
    ServerName portal.tw.com
    ServerAlias portal.tw.com
    Options +FollowSymLinks
    DocumentRoot "/opt/ris/apex"
    RewriteEngine On
    RewriteRule .* https://%{SERVER_NAME}/pls/apex/f?p=103:101 [R=301,L]
    RewriteLog /opt/ris/log/rewrite.log
    ## end add
    Problem is that I cannot get a https://portal.tw.com to display when the rewrite rule is in
    When taking out the rewrite all DADs are accessible which I do not want!
    I cannot see any log entries in access_log, error_log, ssl_request_log that hints/explain the error
    Has anyone any ideas how to modify above to get it working or how to troubleshoot this?
    Many thanks
    Pete

    Thanks for your reply
    in the access_log and ssl_request_log I can see that the page is being requested
    so the redirect 301 is working but no page is sent back to the browser, the browser sort of hangs. I suspect the rewrite rule is missing something - Any ideas that I can try?
    Thanks
    Pete
    Looking in ssl_request_log -
    UNKNOWN SSL_RSA_WITH_RC4_128_MD5 "GET /pls/apex/f?p=103:101 HTTP/1.1" 395
    an entry like this every second
    Looking in current access_log*
    [07/Nov/2006:00:12:20 -0800] "GET /pls/apex/f?p=103:101 HTTP/1.1" 301 395
    an entry like this every second

Maybe you are looking for

  • .oam file of html5 video trigger code not working in Muse

    I simply want to have a video play on page load. I have done the code for a trigger on one <div> to automatically play a video in Edge. The video plays perfectly in browser preview, even with transparency intact! Just the way I want it. The problem i

  • Error in cdr file

    hi, Today, when I was working with a file in Corel and wanted him to withdraw, I got the error " Out of memory" Then I tried to do the same with other Corel files and got the same error. I think that the problem is not in memory, because it also happ

  • Conditional Format Icon Sets not Displaying after SharePoint Update

    We have a SharePoint 2013 site, and after we applied the update below, the conditional formatting for our primary dashboard no longer appears in Excel Services.  We have three different versions of the file and all have been affected.  I have tried r

  • Failed to create deployable object 'local/Calendar' since it not a WD objec

    Hi I created a calendar application in Web dynpro,There iam getting this error .will any one please help me how to avoid this. com.sap.tc.webdynpro.services.sal.core.DispatcherException: The requested deployable object 'local/Calendar' and applicatio

  • Changing the insets of a component

    anyone know how to set the insets of a component? there's a getInsets() method in the Component class, but there doesnt seem to be the usual 'set' method. It must be easy to change, can anyone help? thanks in advance, rob