Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    virtual hosting issue


    I am trying to redirect two apps to tomcat by follwing code but first one is overriding the second one.

    Code:
    <VirtualHost *:80>
        ServerName ec2-50-17-66-31.compute-1.amazonaws.com
    ServerPath /app1
        JkMount /examples/servlets/* worker1
    </VirtualHost>
    
    <VirtualHost *:80>
        ServerName ec2-50-17-66-31.compute-1.amazonaws.com
    
    ServerPath /app2
        JkMount /examples/servlets/* worker2
    </VirtualHost>
    How can I fix it?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,573
    Define first:
    Code:
    NameVirtualHost *:80
    You must always face the curtain with a bow.

  3. #3
    ^I already have it outside the virtualhost section.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •