Struggling with Apache Virtual Hosts

Hi Folks,
I'm having trouble getting Apache virtual hosts to function
on my work PC.
PHP works. The PHP info page loads fine. I just can't get any
virtual hosts
to function. Get "Cannot find server or DNS Error."
The identical configuration on my home machine works fine.
Some details
below.
Windows HOSTS file:
127.0.0.1 localhost
127.0.0.1 mvhms
Apache 2.0 virtual host settings in httpd.conf file:
# Use name-based virtual hosting.
NameVirtualHost *:80
# Edited by Phil 3/15/2007
<VirtualHost *:80>
DocumentRoot c:/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/htdocs/mvhms
ServerName mvhms
</VirtualHost>
Any help greatly appreciated. Thanks.
Phil
Work PC is on a LAN
Windows XP Pro
Apache 2.0.59
PHP 5.1.6
Reference: PHP for Dreamweaver 8

Hi Bev,
I tried various local IP addresses with no luck.
However, I do think it may be a local LAN or HOSTS file
issue. If I remove
the proper references from my home HOSTS file, I get the
identical behavior
as my work machine.
Is there a Windows HOSTS file bypass or Group Policy setting
that our IT
department may have changed?
Phil
"bsoliman" <[email protected]> wrote in
message
news:etcioa$839$[email protected]..
> You're welcome, Phil.
>
> Hmmm, in that case then I'm stumped too. If the exact
same setup is
> working
> for you at home, then I have a sneaking suspicion that
it has something to
> do
> with being on a LAN. Unfortunately, that's just a gut
instinct and I
> couldn't
> tell you what the acutal problem might be. Hopefully
someone else will
> come
> along that can help you out.
>
> This is a total shot in the dark: Why not try changing
127.0.0.1 to your
> machine's IP address on the LAN? I'm obviously grabbing
at straws here,
> but I
> figure trying something (no matter how farfetched) is
better than sitting
> around feeling aggravated while waiting for help :-)
>

Similar Messages

  • Using SSL with Apache Virtual Hosts

    I am configuring Apache to use 3 virtual Host(Named base virtual Host).
    I would like to run SSL on two of the 3 virtual host.
    Do I need to gen a certificate for each virtual host or can I just use 1?

    William,
    I thought I'd give my 2 cents on this...
    Is there any particular reason as to why you are using named based virtual hosts?
    Apache recommends using IP based virtual hosts over name based virtual hosts.
    Go to http://httpd.apache.org/docs/dns-caveats.html and read the discussion on IP based virtual hosts and name based virtual hosts. The document describes the drawbacks to using the name-based approach.
    Hope this helps!
    -Manjeet

  • How to configure Apache Virtual Hosts?

    Hi, I was wondering, how does configure Apache virtual hosts for Mac OS X Client 10.4.5? At this time, I have added
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /Library/WebServer/Documents/janus
    ServerName janus.php.test
    ErrorLog /private/var/log/httpd/janus.php.com-error_log
    CustomLog /private/var/log/httpd/janus.php.com-access_log common
    </VirtualHost>
    Finally, when I try to use the name in the browser, I get the following error message:
    Safari can’t find the server.
    Safari can’t open the page “http://janus.php.test/” because it can’t find the server “janus.php.test”.
    Well, I must go and thanks in advance.
    Peace,
    -Conrad

    If you want to use the fqdn you defined and can/do not want to register it as a Internet Domain you can add it to the hosts file in /etc/hosts if you are comfortable using terminal and the shell
    open a terminal
    and use the following commands
    cd /etc
    sudo vim hosts
    (you will be prompted for your password here, enter it and hit return)
    in vim scroll to the last line which will look like
    ::1 localhost
    type
    i
    (you are now in insert mode)
    type the following line
    192.168.0.15 janus.php.test
    (replace the ip address with the ip address of the host in question)
    hit Control-C
    type
    :w (vim will confirm in the last line)
    type
    :q
    you are back at the terminal
    test your new hosts file by typing
    ping janus.php.test
    Hope this helps
    Mike

  • PlsqlCGIEnvironmentList for multiple apache virtual host

    a question that's still related to the following thread
    APEX Charts - Error XML Loading falied
    APEX Charts - Error XML Loading falied
    Hi,
    I have multiple apache virtual host for my apex instance. I have trouble loading the flash chart in my virtual hosts.
    I followed the instruction on the above link, it works.
    PlsqlCGIEnvironmentList HTTP_HOST=<my friendly URL>:80
    My question is what if I have multiple virtual hosts?
    Has anyone done this before?
    Thanks.
    -Joel

    Hi Jari,
    You mean these parameter
    PlsqlCGIEnvironmentList SERVER_NAME=external.server.com
    PlsqlCGIEnvironmentList SERVER_PORT=80
    How are those different from HTTP_HOST and what if I have multiple host (virtual)?
    Cheers,
    -Joel

  • Apache virtual host with OSX Server?

    I have been running OSX Server for a while now, and just recently I decided to get McMyAdmin for my Minecraft server. The web client for McMyAdmin runs on port 8080, but I wanted it on port 80. I wanted to use it with my domain, so I just created a sub domain and pointed it to my server. The problem is that OSX Server apparently doesn't let me use port 80, even when websites are turned off. I decided to delete Server and just use plain apache. This worked until I realized that my website was only accessible locally. I have all the correct ports forwarded, etc. But I get the error:
    Response Error.
    Technical description:
    502 Bad Gateway - Response Error, a bad response was received from another proxy server or the destination origin server.
    when I try to connect from outside my network. This is probably just some simple thing I missed but it would be nice if someone could just point out what I did wrong here. Back to the point, I want to know how to run the proxy to my web client on port 8080 AND ALSO run OSX Server with or without apache virtualhost.
    Thanks in advance,
    Eamon

    Web is stupidly easy - Apache has extensive support for multiple virtual hosts in a single server and will happily support as many domains/hostnames as you can throw at it.
    Mail is a little trickier since it needs to hook into some kind of directory server to validate user addresses.
    Mac OS X's Open Directory does support this, but it's a little cumbersome (basically every user has to exist in the main Open Directory domain as well as having a secondary email address(es) in the other domain(s).
    This can get especially tricky when you have users with the same shortname in different domains - for example if you give [email protected] a secondary email address of [email protected] and you then get a new user [email protected], you can't give the third 'joe' the address 'joe' in Open Directory since that's already taken. This means he'll have to login using different credentials from his email address. Confused yet? You bet.
    If you're prepared to eschew Open Directory you can just use Postfix's built-in support for virtual hosting, but it's a little more complex to setup and support and is entirely command-line based (i.e. there's no GUI for setting it up or supporting it).
    So, for that reason you might be prepared to setup multiple virtual machines for each domain. It really depends on how much the domains are related (if at all).

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

  • OAM Webgate installation on APache with multiple Virtual hosts?

    Hi I have customer who is having One Single APache web server and having two different applications configured as different Virutal hosts in the single server.
    requirement is , Each application should be protected by OAM Webgate and each application have seperate session configurations. So, How can we handle this ..
    I am thinking to install webgate for each application virutal Host to fulfill this requirement but i am worrying about the Webgate installation since both applications on single Apache server and single httpd.conf file.
    Really appreciated if anyone suggest me the approach of how to fulfil this requirement.
    -Srini
    Edited by: user567398 on Jun 17, 2011 3:00 PM

    Hi Srini,
    You can use a single WebGate - in the "Preferred HTTP Host" setting for the WebGate in the Access System Console, specify SERVER_NAME. OAM will then use the name of the Virtual Host (as returned by Apache) when evaluating policies, and you can have different policies by having different Host Identifiers for the two (or more) virtual hosts.
    Regards,
    Colin

  • How can I connect to multiple WLS instances from a single Apache virtual host

    Configuration : WebLogic 5.1 SP8 & Apache
    I need to be able to have a configuration that looks something like this.
    www.company.com/x -> WL cluster01
    www.company.com/y -> WL cluster02
    In all the examples that I have been able to find they alway defines the the WL
    connection for the entire virtual host, but I need to be able to do it on a location
    basis is that possible?
    Thanks
    Jens Schutt

    httpd.conf:
    <VirtualHost 172.17.9.24:443>
    DocumentRoot "/www/X"
    ServerName qawebivesta.qa.livecapital.com
    ErrorLog /usr/local/apache/logs/qaweb1.error_log
    TransferLog /usr/local/apache/logs/qaweb1.access_log
    SSLEngine on
    SSLCipherSuite
    ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
    <Files ~ "\.(cgi|shtml|phtml|php3?)$">
    SSLOptions +StdEnvVars
    </Files>
    <Directory "/usr/local/apache/cgi-bin">
    SSLOptions +StdEnvVars
    </Directory>
    SetEnvIf User-Agent ".*MSIE.*" \
    nokeepalive ssl-unclean-shutdown \
    downgrade-1.0 force-response-1.0
    Debug ON
    DebugConfigInfo ON
    <Location /ivesta/>
    SetHandler weblogic-handler
    WebLogicHost qawlgc1
    WebLogicPort 7001
    </Location>
    <Location /TMPPhase2>
    SetHandler weblogic-handler
    WebLogicHost qawlgc1
    WebLogicPort 11001
    </Location>
    </VirtualHost>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /TMPPhase2 works fine, but when I try to access /ivesta I get a 404 from WebLogic
    "https://qawebtmp.qa.livecapital.com/ivesta/index.jsp?__WebLogicBridgeConfig
    Weblogic Apache Bridge Configuration parameters:
         WebLogic Cluster List:
              General Server List:
                   Host: 'qawlgc1' Port: 11001
              DefaultFileName: ''
              PathTrim: ''
              PathPrepend: ''
              ConnectTimeoutSecs: '10'
              ConnectRetrySecs: '2'
              HungServerRecoverSecs: '300'
              MaxPostSize: '-1'
              DynamicServerList: ON
              StatPath: false
              CookieName: WebLogicSession
              Idempotent: ON
              FileCaching: ON
              DisableCookie2Server: OFF
              QueryFromRequest: OFF
              Build date/time: Jun 25 2001 15:09:34
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    This should have been connecting to my 7001 instance not the 11001.
    Thanks
    Jens
    "Eric Gross" <[email protected]> wrote:
    What do you mean the wrong port? Post the complete output from
    WebLogicBridgeConfig as well as the URL you used.
    Also, paste the weblogic relative portions from your httpd.conf
    Thanks,
    Eric
    "jens" <[email protected]> wrote in message
    news:[email protected]...
    I also used ?__WebLogicBridgeConfig to verify that it did pick up thewrong port.
    Here is my build date for mod_wl.so in SP10
    Build date/time: Jun 25 2001 15:09:34
    Thanks
    Jens
    "Eric Gross" <[email protected]> wrote:
    Make sure you are using the latest plugin. As well, add parameter:
    DebugConfigInfo=ON and make a request with a query paramater of
    ?__WebLogicBridgeConfig and you should then see the build date/time.
    We can
    then see if you are indeed using the latest plugin.
    It is not a possibility to get the source.
    Regards,
    Eric
    "jens" <[email protected]> wrote in message
    news:[email protected]...
    And the solution where you put the WebLogic parm under location
    the
    last
    location
    over rule the previous.
    I have also tried to upgrade my plug-in from SP8 to SP10 but that
    didn't
    make
    any difference either.
    Is it possible to get the source code for the plug-in, I'm afraid
    that
    it
    don't
    follow put's all it's parm's a the vhost level no matter where in
    the
    conf
    file
    they are placed.
    HELP
    Jens
    "Eric Gross" <[email protected]> wrote:
    Yu is correct.
    Here is another way to do it as well:
    MatchExpression /x
    WebLogicCluster=server1:port,server2:port|PathTrim=/x
    MatchExpression /yWebLogicCluster=server3:port,server4:port|PathTrim=/y
    The general syntax for this would be:
    MatchExpression exp name=value|name=value
    Where exp=Mime type(*.jsp) or exp=/x(path)
    The next argument in the list is a pipe(|) delimited list ofname=value
    pairs (ie: WebLogicHost, WebLogicPort, WebLogicCluster, PathTrim,
    PathPrepend, etc..).
    Hope this helps.
    Regards,
    Eric
    "Yu Tian" <[email protected]> wrote in message
    news:[email protected]...
    Hi Jens,
    I think you can proxy by ppath.
    <Location /x>
    SetHandler weblogic-handler
    WebLogicCluster cluster1
    </Location>
    <Location /y>
    SetHandler weblogic-handler
    WebLogicCluster cluster2
    </Location>
    thanks
    Yu
    "Jens" <[email protected]> wrote in message
    news:[email protected]...
    Configuration : WebLogic 5.1 SP8 & Apache
    I need to be able to have a configuration that looks something
    like
    this.
    www.company.com/x -> WL cluster01
    www.company.com/y -> WL cluster02
    In all the examples that I have been able to find they alway
    defines
    the
    the WL
    connection for the entire virtual host, but I need to be able
    to
    do it
    on
    a location
    basis is that possible?
    Thanks
    Jens Schutt

  • Apache virtual hosts

    Hello,
    I have a enabled http access to my G4 and also FTP. I now would like to host my other sites.
    How can I enable virtual hosting?
    I have looked at documentation relating to this but have come unstuck as I have tried to look for the areas in the httpd.conf file that controls this. I think I found it but I'm not at all unix or command-line savvy so I don't wish to stuff it up. I have also looked through Apaches' on line documentation but I cant find any straight forward "this is what to change and this is how to change it" document. There seems to be much to do through terminal in order to allow virtual hosts, and there is also security which I believe is contained in other apache files. The mac is standalone and I think I need to allow it to be inetd? Is that right?
    Is there alternative software apart from apple server, that a novice like me can learn from or allow me to set these up through a gui?
    Thanks for your help

    Hi--
    sorry for the delay in responding have been away for
    xmas, will ask for advice on the apache boards,
    You can also ask for advice here. Unless the Apache boards have an area specifically for Apache on OS X, you could get confusing advice. Apple's Apache uses a different file layout than Linux, for example. Also, the Apache on OS X is still version 1.3, so you can get confusing advice there, too.
    but I
    will give nedit a go to see what it does.
    If you find nedit too daunting to install (it requires X Windows, for example, so you'd need that), you should look at Bare Bones' TextWrangler (if you're not already using BBedit, that is). You can use it to open the Apache configuration files. There's even an Apache Configuration Language module that works with TextWrangler. To install it into TextWrangler, just substitute "TextWrangler" in the path given on the Daring Fireball page. It works like a champ with either BBEdit or TextWrangler.
    Do you think it would be worth
    investing in apple server?
    If all you want to do is to set up virtual hosts on your computer, I don't think it's worth it. I haven't used the GUI tools for setting up so I don't know how good they are, though.
    But it's pretty simple to set up a virtual host on regular OS X. Basically, you open up the Apache configuration file. If you're using TextWrangler, and you installed the command line tool, it's as easy as typing this in the Terminal application:
    <pre class="command">edit /etc/httpd/httpd.conf</pre>TextWrangler will take care of the proper authentication when it comes time to make changes or save your file.
    The first thing to look for in your httpd.conf file is the NameVirtualHost directive. By default, it's commented out (has a "#" in front of the line):
    <pre class="command">#NameVirtualHost *:80</pre>Just remove the "#" from the front of the line.
    Then, a little further down, there's an example host but it's commented out:
    <pre class="command">#<VirtualHost *:80>
    # ServerAdmin [email protected]
    # DocumentRoot /www/docs/dummy-host.example.com
    # ServerName dummy-host.example.com
    # ErrorLog logs/dummy-host.example.com-error_log
    # CustomLog logs/dummy-host.example.com-access_log common
    #</VirtualHost></pre>I always leave that alone, but start my virtual hosts just below that. It can be as simple as this:
    <pre class="command"><VirtualHost *>
    DocumentRoot "/Library/WebServer/sitedirectory"
    ServerName www.domain.com
    </VirtualHost></pre>You can, however, get fancy and add all kinds of directives into that block, customizing your virtual host as much as you want. My suggestion would be to try setting up a virtual host and see where you get stuck, then post back with questions.
    As for messing up the httpd.conf file, don't worry about it too much. There's a "default" copy of the file in the /etc/httpd directory that you can always go back to. Or, do what I do before I'm about to try something that could turn ugly: make a copy of the current configuration file:
    <pre class="command">sudo cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.cmbak.1</pre>Where I just incremement the "1" on the end. Or I put the date on there: httpd.conf.cmbak.20061229. That way, I always have the current file to fall back on...
    And don't forget: any time you make a change to the httpd.conf file, you have to stop and restart the web server! That's so easy to forget. Also, if you're changing the configuration, these two Terminal commands will be your friends:
    <pre class="command">/usr/sbin/apachectl configtest
    /http -S</pre>
    The first one tells you if you have any syntax errors in your configuration file, the second will tell you about your virtual host setup.
    charlie

  • 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

  • Apache virtual hosting and URL prefixes

    I am having a bit of trouble with processing PHP after
    setting up a virtual server on apache.
    This is the setup:
    Apache is installed and the document root is "C:\Program
    Files\Apache Group\Apache2\htdocs" which was originally set as
    localhost as well
    Virtual hosting is to be set up for "C:\WEBSITES\mysite" This
    directory, you will note,is outside the htdocs directory.
    I edited the httpd.conf file as follows to set up a virtual
    server.
    <VirtualHost 127.0.0.1:80>
    DocumentRoot "C:\WEBSITES\mysite"
    ServerName mysite.local
    </VirtualHost>
    I didnt forget to remap localhost either ..........
    <VirtualHost 127.0.0.1:80>
    DocumentRoot "C:\Program Files\Apache Group\Apache2\htdocs"
    ServerName localhost
    </VirtualHost>
    the hosts file got tweaked too to include this:
    127.0.0.1 localhost
    127.0.0.1 mysite.local
    Everything was restarted and hey presto localhost still
    processes PHP properly but mysite doesnt.
    I am pretty sure i've set the url prefix wrong. The DWeaver
    help files refer to an IIS setup. Could anybody fill me in on what
    to put in this line and why. Any other pitfalls in setting this up
    would also be kindly received
    PS - port 80 is the listening port if it helps.

    All I did when I set up Apache was to set the document root
    to what I
    wanted:
    DocumentRoot "C:\webserver"
    and I put my documents in the "webserver" directory. I did
    this cause the
    htdocs directory path is way long .. it works fine.
    Mine is localhost:8080 cause I have IIS on 80 but I don't see
    where it
    should matter.
    Nancy Gill
    Adobe Community Expert
    BLOG:
    http://www.dmxwishes.com/blog.asp
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "mark81" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am having a bit of trouble with processing PHP after
    setting up a virtual
    > server on apache.
    >
    >
    > This is the setup:
    >
    > Apache is installed and the document root is "C:\Program
    Files\Apache
    > Group\Apache2\htdocs" which was originally set as
    localhost as well
    >
    > Virtual hosting is to be set up for "C:\WEBSITES\mysite"
    This directory,
    > you
    > will note,is outside the htdocs directory.
    >
    >
    >
    > I edited the httpd.conf file as follows to set up a
    virtual server.
    >
    > <VirtualHost 127.0.0.1:80>
    > DocumentRoot "C:\WEBSITES\mysite"
    > ServerName mysite.local
    > </VirtualHost>
    >
    > I didnt forget to remap localhost either ..........
    > <VirtualHost 127.0.0.1:80>
    > DocumentRoot "C:\Program Files\Apache
    Group\Apache2\htdocs"
    > ServerName localhost
    > </VirtualHost>
    >
    >
    > the hosts file got tweaked too to include this:
    > 127.0.0.1 localhost
    > 127.0.0.1 mysite.local
    >
    >
    > Everything was restarted and hey presto localhost still
    processes PHP
    > properly
    > but mysite doesnt.
    >
    >
    > I am pretty sure i've set the url prefix wrong. The
    DWeaver help files
    > refer
    > to an IIS setup. Could anybody fill me in on what to put
    in this line and
    > why.
    > Any other pitfalls in setting this up would also be
    kindly received
    >
    >
    > PS - port 80 is the listening port if it helps.
    >
    >

  • Apache Virtual Hosts and Weblogic 5.1SP6

    Running:
    WebLogic Server 5.1.0 w/ Service Pack 6
    Solaris 7
    Hello, I've been reading through the newsgroups and saw alot of information on
    setting up apache and weblogic to handle virtual hosts, but am still having problems
    getting it to work.
    I have 2 domains that will be served up by one instance of Apache using NameBased
    virtual hosts and I would like to have our one instance of WebLogic 5.1SP6 handle
    them as well.
    Excerpt from my httpd.conf file:
    NameVirtualHost 216.xx.x.xx:80
    <VirtualHost vcstgws011:80>
    ServerName vcstgws011.domain1.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost vcstgws011:80>
    ServerName www.domain2.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www/dsl
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    Under my default server configuration I have the WebLogic stuff:
    <IfDefine WL>
    WebLogicCluster vcstgas011.domain1.com:7001
    Debug on
    DebugConfigInfo on
    ConnectTimeoutSecs 60
    HungServerRecoverSecs 300
    Debug on
    DebugConfigInfo on
    <Files *.jsp>
    SetHandler weblogic-handler
    </Files>
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    </Location>
    <Location /servlet>
    SetHandler weblogic-handler
    </Location>
    <Location /Admin*>
    SetHandler weblogic-handler
    </Location>
    <Location /j_security_check>
    SetHandler weblogic-handler
    </Location>
    </IfDefine>
    And here's an excerpt from my weblogic.properties file:
    # HTTPD
    weblogic.httpd.enable=true
    # DocumentRoot configuration
    weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
    weblogic.httpd.indexDirectories=true
    Any help would be appreciated.
    Thanks,
    Mark

    Anyone have success with Name-Based virtual hosts using same instance of WebLogic?
    "Mark Mangano" <[email protected]> wrote:
    >
    Running:
    WebLogic Server 5.1.0 w/ Service Pack 6
    Solaris 7
    Hello, I've been reading through the newsgroups and saw alot of information
    on
    setting up apache and weblogic to handle virtual hosts, but am still
    having problems
    getting it to work.
    I have 2 domains that will be served up by one instance of Apache using
    NameBased
    virtual hosts and I would like to have our one instance of WebLogic 5.1SP6
    handle
    them as well.
    Excerpt from my httpd.conf file:
    NameVirtualHost 216.xx.x.xx:80
    <VirtualHost vcstgws011:80>
    ServerName vcstgws011.domain1.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost vcstgws011:80>
    ServerName www.domain2.com
    Port 80
    DocumentRoot /opt/vci-10.8/webapps/www/dsl
    DirectoryIndex index.jsp
    <Directory "/opt/vci-10.8/webapps/www">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    </VirtualHost>
    Under my default server configuration I have the WebLogic stuff:
    <IfDefine WL>
    WebLogicCluster vcstgas011.domain1.com:7001
    Debug on
    DebugConfigInfo on
    ConnectTimeoutSecs 60
    HungServerRecoverSecs 300
    Debug on
    DebugConfigInfo on
    <Files *.jsp>
    SetHandler weblogic-handler
    </Files>
    <Location /weblogic>
    SetHandler weblogic-handler
    PathTrim /weblogic
    </Location>
    <Location /servlet>
    SetHandler weblogic-handler
    </Location>
    <Location /Admin*>
    SetHandler weblogic-handler
    </Location>
    <Location /j_security_check>
    SetHandler weblogic-handler
    </Location>
    </IfDefine>
    And here's an excerpt from my weblogic.properties file:
    # HTTPD
    weblogic.httpd.enable=true
    # DocumentRoot configuration
    weblogic.httpd.defaultWebApp=/opt/vci-10.8/webapps/www
    weblogic.httpd.indexDirectories=true
    Any help would be appreciated.
    Thanks,
    Mark

  • BEA Proxy Plugin and Apache Virtual Hosts

    I have a setup of different Apache (2.0.63) Instances with BEA-Proxy Plugin (10.0 MP1):
    <VirtualHost *>
    ServerName server1.tld
    <IfModule mod_weblogic.c>
    MatchExpression */app1/* WebLogicHost=app1.com|WebLogicPort=1234
    </IfModule>
    </VirtualHost>
    <VirtualHost *>
    ServerName server2.tld
    <IfModule mod_weblogic.c>
    MatchExpression */app2/* WebLogicHost=app2.com|WebLogicPort=1234
    </IfModule>
    </VirtualHost>
    Now I can access to this applications through apache by:
    http://server1.tld/app1/... and
    http://server2.tld/app2/
    this is ok, but it's also possible to access:
    http://server1.tld/app2/... and
    http://server2.tld/app1/
    Is this still a know bug? I have found this issue also in the old BEA forum, but there was also no solution.
    Does anybody know a workaround?
    Thanks,
    Chris

    Hi,
    I have a similar problem, I'm running apache 2.2 on windows and oc4j 10.1.3.4.0.
    I'd like to map http://app1.example.com/home.html in apache to http://10.1.1.3:8888/app1/home.html and http://app2.example.com/home.html to http://10.1.1.3:8888/app2/home.html
    I have the ProxyPass settings in my httpd.conf file
    ProxyPass / http://10.1.1.3:8888/app1
    ProxyPassReverse / http://10.1.1.3:8888/app1
    This works fine for the first URL and the browser shows the correct page at http://app1.example.com/home.html however as soon as I click a link in the page the browser tries to go to http://app1.example.com/app1/page2.html
    And since I have my ProxyPass mapping in apache, I think its trying to get to the following page in oc4j http://10.1.1.3:8888/app1/app1/page2.html which doesn't exist.
    Is there any way to map a subdomain/virtual host to an oc4j context but hide from the browser the oc4j context in each of the URLs.
    To make matters more tiricky (or maybe not), I'm using Struts 1.3.10 as my application framework, so I don't normally construct the <a> links myself but have Struts do that for me with <html:link> tags.
    Thanks in advance for any pointers,
    Andy.

  • OC4J and Apache Virtual Hosts

    Server Setup
    OS Version: Windows Server 2003 64bit
    Server Version: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server
    API Version: 19990320:18
    Run Mode: standalone
    I have setup two seperate Apache VirtualHosts address1.mycompany.com and address2.mycompany.com I have also setup 2 seperate OC4J application groups appgroup1 and appgroup2. I need to tie appgroup1 to the virtualhost address1.mycompany.com and appgroup2 to address2.mycompany.com. There will be two seperate applications running on each app group and they both need to run at the root level of the address .... instead of running like so address1.mycompany.com/application1 ....
    Is this possible to do with this version of Oracle Application Server. I have seen that in the Weblogic version there are ways in which to do this, but due to a deadline and my limited knowledge of Weblogic at this point I am unable to go that direction ... Any help with this would be greatly appreciated and well recieved.
    Edited by: Steve Carlson on Jan 23, 2009 3:41 PM

    Hi,
    I have a similar problem, I'm running apache 2.2 on windows and oc4j 10.1.3.4.0.
    I'd like to map http://app1.example.com/home.html in apache to http://10.1.1.3:8888/app1/home.html and http://app2.example.com/home.html to http://10.1.1.3:8888/app2/home.html
    I have the ProxyPass settings in my httpd.conf file
    ProxyPass / http://10.1.1.3:8888/app1
    ProxyPassReverse / http://10.1.1.3:8888/app1
    This works fine for the first URL and the browser shows the correct page at http://app1.example.com/home.html however as soon as I click a link in the page the browser tries to go to http://app1.example.com/app1/page2.html
    And since I have my ProxyPass mapping in apache, I think its trying to get to the following page in oc4j http://10.1.1.3:8888/app1/app1/page2.html which doesn't exist.
    Is there any way to map a subdomain/virtual host to an oc4j context but hide from the browser the oc4j context in each of the URLs.
    To make matters more tiricky (or maybe not), I'm using Struts 1.3.10 as my application framework, so I don't normally construct the <a> links myself but have Struts do that for me with <html:link> tags.
    Thanks in advance for any pointers,
    Andy.

  • How to disable coldfusion for an apache virtual host

    Is it possible to disable CF on an per virutal host basis.
    Because i am using a context_root of / (default for cfusion
    eh), all access for images, html, even things I have setup to use
    mod_proxy to go elsewhere are first run past CF. I wish it was
    posible to specify file mappings in the httpd.conf but can't find a
    way to do that. But i have some virtual hosts which have no need
    for CF, is there any way to just shut it off?
    The only thing I can think of is to remove the mod_jrun
    specifications which define cf outside of the virutal host configs,
    but that means a lot more specs per virutal hosts.

    This might be a weird (or maybe unmanagable, because I don't
    know how many sites you have) way to do it, but how about this:
    since Apache has the AddHandler directive that can be used inside
    VirtualHost sections, you could -not- enable the mime type
    extension you use for CF by default, and then only enable it via
    AddHandler on the VirtualHosts where you need CF.
    That way, you'd only have one more spec per VirtualHost and
    you wouldn't have to go back and change anything when you wanted to
    add/remove any of them, whether they run CF or not. This is theory,
    of course, but I will try it on my Linux box now and see if I can
    get it to work.
    &laz;

Maybe you are looking for

  • Application deployment on WebLogic 10.3.2

    I am trying to understand the best practice to deploy web applications on WebLogic 10.3.2. Is it recommended have a managed server for each and every deployment or can we have multiple deployments under one managed server. Will there be any performan

  • How do i add my iMac to a windows 7 homegroup

    How do I add my iMac to a Windows 7 homegroup?   The iMac is currently connected to the wireless network but, does not display on the win7 pc as a networked device.   The iMac does have full internet access through the networks wireless router.   I a

  • Keynote Edit Slide - Selecting a slide past 10

    Hello I have been experiencing an issue with the Latest Version of Keynote running on Yosemite Beta ( asking this question to determine if I need to install on another Mavericks machine) I have been creating a Presentation with multiple links to diff

  • Customizing Text, Color, and Images (Planning)

    I have read this link http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/frameset.htm?ch13.html and traying to do it in my app but i can't found where HspCustomImgs_en.template loacted Any one know where is the position of this file in Hy

  • Reinstalling Premiere Elements on the same PC twice

    I had to reinstall PE on the same PC twice after intalling a new hard drive an again after reinstalling Windows 7. The program seems to think I have reinstalled PE 8 on more than two PCs. How do I fix this?