Question about Virtual Hosts with Apache 2
Hi,
I have a mac mini with 10.5.4 and I was wondering if it is possible to host two websites on this one computer. What I mean by this is I have an ip address 12.34.56.78 that points to the mac mini.
I also have two domain names, say example1.com and example2.com, each with total DNS control. Is it possible to point both domains to 12.34.56.78 and have different pages show. For example when example1.com is loaded, the file /Library/WebServer/Documents/example1/index.html is loaded. When example2.com is loaded, /Library/WebServer/Documents/example2/index.html is loaded.
I have tried to do this with virtual hosts, but I can't seem to get it to work. I seem to have permission problems with apache 2 and I get the forbidden error.
If anyone knows if this is possible, and how to do it that would be of great help. Thanks.
Awesome, thanks David! I look forward to reading this. I've
just been
"dealing" with it. :O)
Jon
"David Powers" <[email protected]> wrote in message
news:elh9uq$el0$[email protected]..
>I have written a short tutorial on setting up virtual
hosts in Apache 2.2
>on Windows. I wrote it as an update for readers of
"Foundation PHP for
>Dreamweaver 8", but it contains full instructions, so
doesn't require a
>copy of my book to be able to follow it.
>
>
http://foundationphp.com/tutorials/apache22_vhosts.php
>
> --
> David Powers, Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of
ED)
> Author, "PHP Solutions" (friends of ED)
>
http://foundationphp.com/
Similar Messages
-
Setting up Virtual Host in Apache for UCM Sites
As the subject says: I am trying to setup virtual hosts in apache for UCM Sites. Now we are trying to set it up so for every site in UCM we have one ip address. So on the browser when I see someone typed in "http://www.myfirstsite.com" (through the magic of dns they get routed to my server). Once they are at the server in Apache I want to setup virtual hosts so I can redirect user to the proper site residing in UCM.
Now, it is possible for me to access the sites by doing this "http://myservername/myfirstsite". But what I want to setup in Apache is that when someone types in "http://www.myfirstsite.com" they see which ever site I want them to see in UCM. But mann I just don't know what would be the document root or how would I go about getting the users to SEE what I want them to see. Can anyone help me with this please? Thanks in advance.You should be able to stick with the default apache config where it will answer for any hostname and create virtual hosts for each instance with the document root appropriate for that CS instance. Then you should be able use rewrite rules to direct users to the appropriate virtual host depending on what URL they access the server with. Check out the documentation for Apache around mod_rewrite: http://httpd.apache.org/docs/current/rewrite/
-
Virtual Hosts in Apache HTTP Server
How to configure virtual hosts in Apache HTTP Server httpd.conf file.
If I want to access my server with some other name(alias), how can I do this ?
Suggestions in this matter would be highly helpful.
Thanks
Vidhyut AroraFollowing is a note explaining how to setup
Virtual hosts.
Hope this helps
Ranga
Note:70647.1
Subject: Apache Server Virtual Hosting
Last Revision Date: 07-JUN-2001
PURPOSE
This document discusses considerations for setting up virtual hosts on an
Apache machine, to include how to get the hostname working and how to
configure Apache.
SCOPE & APPLICATION
The information in this document is intended for those who manage multiple sites
using an Apache machine.
REFERENCES
First published in Apache Week issue 31 (6th September 1996)
Last update 20th September 1998
Using Virtual Hosts
Virtual Hosts let you run multiple independent Web sites on a single host with
a single Apache setup.
One of the most important facilities in Apache is its ability to run virtual
hosts. This is now the essential way to run multiple Web services - each with
different host names and URLs - that appear to be completely separate sites.
This is widely used by ISPs, hosting sites and content providers who need to
manage multiple sites but do not want to buy a new machine for each one.
Picking an IP address
There are two types of virtual hosts: IP-based and non-IP-based. The former is
where each virtual host has its own IP address. You must have a new IP address
for each virtual host you want to set up, either from your existing allocation
or by obtaining more from your service provider. When you have extra IP
addresses, you tell your machine to handle them. On some operating systems, you
can give a single ethernet interface multiple addresses (typically with an
fconfig alias command). On other systems, you must have a different
physical interface for each IP address (typically by buying extra ethernet
cards).
IP addresses are a resource that costs money and are increasingly difficult to
get, so modern browsers can now also use 'non-IP' virtual hosts. This
lets you use the same IP address for multiple host names. When the server
receives an incoming Web connection, it does not know the hostname that was used
in the URL. However, the new HTTP/1.1 specification adds a facility where the
browser must tell the server the hostname it is using, on the Host: header. If
an older browser connects to a non-IP virtual host, it does not send the Host:
header, so the server must respond with a list of possible virtual
hosts. Apache provides some help for configuring a site for both old and new
browsers.
Picking a Hostname and Updating the DNS
Having selected an IP address, the next stage is to update the DNS so that
browsers can convert the hostname into the right address. The DNS is the system
that every machine connected to the internet uses to find the IP address of host
names. If your hostname is not in the DNS, no one can connect to
your server (except by the unfriendly IP address).
If the virtual hostname you are going to use is under your existing domain,
you can just add the record into your own DNS server. If the virtual hostname
is in someone else's domain, you must get them to add it to their DNS
server files. In some cases, you want to use a domain not yet used on the
internet, in which case you must apply for the domain name from the
InterNIC and set up the primary and secondary DNS servers for it, before adding
the entry for your virtual host.
In any of these cases, the entry you need to add to the DNS is an address record
(an A record) pointing to the appropriate IP address. For example, say you want
the domain www.my-dom.com to access your host with IP address 10.1.2.3: you
must add the following line to the DNS zone file for my-dom.com:
www A 10.1.2.3
Now, users can enter http://www.my-dom.com/ as a URL in their browsers and get
to your Web server. However, it will return the same information as if the
machine's original hostname had been used. So, the final stage is to tell Apache
how to respond differently to the different addresses.
How Apache Handles Virtual Hosts
Configuring Apache for virtual hosts is a two-stage process. First, it needs
to be told which IP addresses (and ports) to listen to for incoming Web
connections. By default, Apache listens to port 80 on all IP addresses of the
local machine, and this is often sufficient. If you have a more complex
requirement, such as listening on various port numbers, or only to specific IP
addresses, then the BindAddress or Listen directives can be used.
Second, having accepted an incoming Web connection, the server must be
configured to handle the request differently, depending on what virtual host it
was addressed to. This usually involves configuring Apache to use a different
DocumentRoot.
Telling Apache Which Addresses to Listen To
If you are happy for Apache to listen to all local IP addresses on the port
specified by the Port directive, you can skip this section. However, there are
some cases where you want to use the directives explained here:
- If you have many IP addresses on the machine but only want to run a Web
server on some of them
- If one or more of your virtual hosts is on a different port
- If you want to run multiple copies of the Apache server serving different virtual
hosts
There are two ways of telling Apache what addresses and ports to listen to:
- Use the BindAddress directive to specify a single address or port
- Use the Listen directive to any number of specific addresses or ports
For example, if you run your main server on IP address 10.1.2.3 port 80, and a
virtual host on IP 10.1.2.4 port 8000, you would use:
Listen 10.1.2.3:80
Listen 10.1.2.4:8000
Listen and BindAddress are documented on the Apache site.
Configuring the Virtual Hosts
Having gotten Apache to listen to the appropriate IP addresses and ports, the
final stage is to configure the server to behave differently for requests on
each of the different addresses. This is done using <VirtualHost> sections in
the configuration files, normally in httpd.conf.
A typical (but minimal) virtual host configuration looks like this:
<VirtualHost 10.1.2.3>
DocumentRoot /www/vhost1
ServerName www.my-dom.com
</VirtualHost>
This should be placed in the httpd.conf file. You replace the text
10.1.2.3 with one of your virtual host IP addresses. If you want to specify a
port as well, follow the IP address with a colon and the port number
(example: 10.1.2.4:8000). If omitted, the port defaults to 80.
If no <VirtualHost> sections are given in the configuration files, Apache
treats requests from the different addresses and ports identically. In terms of
setting up virtual hosts, we call the default behavior the main server
configuration. Unless overridden by <VirtualHost> sections, the main server
behaviour is inherited by all the virtual hosts. When configuring virtual
hosts, you must decide what changes to make in each of the virtual
host configurations.
Any directives inside a <VirtualHost> section apply to just that virtual host.
The directives either override the configuration give in the main server, or
supplement it, depending on the directive. For example, the DocumentRoot
directive in a <VirtualHost> section overrides the main server's DocumentRoot,
while AddType supplements the main server's mime types.
Now, when a request arrives, Apache uses the IP address and port it arrived on
to find a matching virtual host configuration. If no virtual host matches the
address and port, it is handled by the main server configuration. If it does
match a virtual host address, Apache uses the configuration of that virtual
server to handle the request.
For the example above, the server configuration used is the same as the
main server, except that the DocumentRoot is /www/vhost1, and the
ServerName is www.my-dom.com. Directives commonly set in <VirtualHost>
sections are DocumentRoot, ServerName, ErrorLog and TransferLog. Directives
that deal with handling requests and resources are valid inside <VirtualHost>
sections. However, some directives are not valid inside <VirtualHost> sections,
including BindAddress, StartSevers, Listen, Group and User.
You can have as many <VirtualHost> sections as you want. You can
leave one or more of your virtual hosts being handled by the main server, or
have a <VirtualHost> for every available address and port, and leave the main
server with no requests to handle.
VirtualHost sections for non-IP Virtual Hosts
Non-IP virtual hosts are configured in a very similar way. The IP address that
the requests arrive on is given in the <VirtualHost> directive, and the
host name is put in the ServerName directive. The difference is that there
(usually) is more than one <VirtualHost> section handling the same IP address.
For Apache to know whether a request arriving on a particular IP
address is supposed to be a name-based requests, the NameVirtualHost directive
addresses for name-based requests. A virtual host can handle more than one
non-IP hostname by using the ServerAlias directive, in addition to the
ServerName.
null -
Adding more virtual hosts in Apache
Hi, When I want to add more virtual hosts to Apache in XAMPP. How does the code looks. Can some one please give an example with 3 virtual hosts.
Windows Vista 32.
Is it only adding: <VirtualHost *:80>
DocumentRoot c:/vhosts/siteA
ServerName siteA
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/siteB
ServerName siteB
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/siteC
ServerName siteC
</VirtualHost>
Thanks!As it says in step 3 of my tutorial:
On a separate line, enter 127.0.0.1, followed by some space and the name of the virtual host you want to register. For instance, to set up a virtual host called phpdw, enter the following:
127.0.0.1 phpdw
So, if you already have this:
127.0.0.1 localhost
::1 localhost
It become this:
127.0.0.1 localhost
::1 localhost
127.0.0.1 phpdw -
SSL virtual host with external hardware accelerator/LBR
Hi all,
We have an existing non-ssl site configured - http://abc.company1.com
We wish to add a new https site - https://xyz.company2.com - and terminate SSL at our hardware load balancer. But obviously keep our existing http site available.
However, we can't seem to get this to work. We added a new site to the Web Cache, registered it with sso, updated httpd.conf and iasconfig.xml with the new virtual host and ran ptlconfig.
Has anyone successfuly implemented a similar configuration?
Is it possible to have a mixture of http and https virtual hosts with SSL termination at the LBR?
Thanks in advance,
AndyYeah, in the app server admin guide for SSL configuration:
17.3.5 Enabling SSL in Virtual Hosts
You can use virtual hosts to deploy multiple Web sites on a single Oracle HTTP Server (for example, to make an application available over the HTTP protocol and the HTTPS protocol).
The Oracle Application Server Single Sign-On Administrator's Guide, section titled "Configuring mod_osso with Virtual Hosts" contains instructions on configuring an SSL virtual host to be protected by mod_osso. You cannot use name-based virtual hosting. You must use IP-based or port-based virtual hosting.
//This may be your problem - granted no symptoms were provided. -
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,
EamonWeb 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). -
I need help with Virtual Hosting on Apache Tomcat 6
Morning all,
I have Tomcat 6 on Windows XP and I've been trying to have multiple domains work on it without success.
I have the following configuration in my server.xml
<Host name="www.myapp1.com" appBase="webapps/myapp1"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>myapp1.com</Alias>
</Host>
<Host name="www.myapp2.com" appBase="webapps/myapp2"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>myapp2.com</Alias>
</Host>
+... only the following code works+
<Host name="www.myapp.com" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
I have been looking online for solutions but nothing has worked so far
Can someone please tell me what I am doing wrong. I am not fronting the container with Apache (http://www.myapp.com takes me to my default page).Hi:
The only way to upgrade the graphics adapter in any HP consumer notebook (Intel or AMD) that has been made in the last several years is to completely replace the motherboard for one with better graphics (if one exists for your model).
This procedure is normally much too expensive to make such an upgrade worthwhile.
A person would be better off selling their current notebook and buying a new one with the graphics they want. -
How to confiture virtual hosts with multiple domain names
hello,
I've read through some of the postings here on virtual hosts, but I thought I'd better solicit advice before I actually try some of the things I've read about.
In a nutshell, I've purchased multiple domain names that I'd like to alias to a new site (currently it is just a subfolder in the main site directory) on my OS 10.3.x server. There is only the one main site configured right now on the box, so I know I need to set up a second "virtual site" pointing to the files in this subfolder to make it function as its own site.
I've dabbled around with the sites settings in the GUI, but I'd probably be most comfortable setting all this up in the httpd.conf by hand if I could. But I'm weary of this because I know it might be better to use the GUI because of OS X Server's flavor of WebObjects and Apache (sigh).
So, I have two main questions:
1) How would I set up this second site using the GUI in server settings? Do I need to first move the subfolder out of the main folder before it can be designated its own site? Or can I just point to it in the GUI? Can I use one of my purchased domain names in the domain field?
2) Currently, I have URL Forwarding set with my multiple domain names, but I'm thinking there might be a better way to do this? For SEO I'd rather use some type of redirect rather than being penalized by search engines for having what looks to be multiple domains pointing to the same site.I'm thinking I should create virtual sites for each domain name I've purchased with a hard redirect back to the main site?
Any suggestions would be appreciated.
Thanks
G4 Mac OS X (10.3.9) 10.3.9 Server
G4 Mac OS X (10.3.9) 10.3.9 Serverthank you for your reply.
> You can create each site as a new Site in Server
Admin. When you do this you can choose any
directory on disk as the document root for each
site.This means you can move the sites' folders out of
/Library/WebServer/Documents if you like - you could
create /Library/WebServer/site1,
/Library/WebServer/site2, etc. (or even be outside of
/Library/WebServer if you want).
so, are you are saying that I could designate one site to be
/Library/WebServer/Documents/site1
and another to be
/Library/WebServer/Documents/site1/directory1
even though directory1 is contained within site1's structure? I'm not advancing this as a good idea, necessarily. I'm just wondering if Apache would complain.
> Each site should have the domain name set as per your
registered domains. Apache will need this to
determine the correct site to serve for each
request.
Well, after some additional research I'm thinking I'm missing a critical piece of the puzzle. That being access to the DNS host server that manages the context of my server. I have purchased domain names through an outside registrar that point to my site and I can create virtual hosts on my server, but I don't have the ability to add the new virtual host names into the DNS server that manages my box. If that makes sense. Or maybe I'm missing something?
>
I'm not sure why you're using URL forwarding at all.
Without that piece of information it's impossible to
tell you whether you should continue using them or
not - in general there's no need to use URL
forwarding if you have multiple Virtual Hosts setup,
but it sounds like you have multiple hostnames
pointing to the same content, so your needs may be
different.
I'm using forwarding for the reason I list above. I didn't purchase hosting with the registrar where I purchased my domain names, so they are parked on the registrar's name server with URL forwarding to my server. The DNS server that manages my box resides in a different location and I don't have the ability to add DNS entries pointing to virtual hosts that I want to set up. Am I stuck?
G4 Mac OS X (10.3.9) 10.3.9 Server -
Questions Re: Virtual Hosts & MAMP
I hired a computer science student to install and configure MySQL, phpMyAdmin and virtual hosts on my MacBook Pro, but he screwed it up. So I tried to figure it all out myself once again. I finally downloaded a preconfigured package called MAMP. I now apparently have PHP, MySQL and phpMyAdmin up and running on my machine. But that still leaves virtual hosts.
I checked out the MAMP Pro version ($50) at
http://www.living-e.com/products/MAMP-PRO/index.php and read "You can set up many virtual hosts."
That doesn't make sense to me; shouldn't you be able to set up many virtual hosts even with the free version of MAMP? Or does MAMP somehow make it EASIER to create virtual hosts, and the Pro version simply allows you to make many of these simplified virtual hosts?
Unfortunately, MAMP's support forums seem pretty lame, so I decided to ask some questions here. If MAMP Pro does indeed make it easy to create virtual hosts, then I'll purchase it immediately.
If it doesn't, then can anyone point me to a tutorial that explains the entire process, as clearly as possible? I've modified my httpd.conf, hosts and NetInfo files till I'm blue in the face and have asked questions on three different forums. I was able to create virtual hosts even on my PC; surely it can't be that much harder on a Mac.
Thanks!Yeah, in another post he decided he does not like the Netinfo solution as he is a new Mac user and wants to keep it simple. I believe Netinfo is for DNSing the localnet anyway.
It turns out it is incredibly simple to configure Virtual Hosts. In fact, it is even simpler in Apache 2 than Apache 1.3 because there is a separate component for configuring the Virtual Domains. Here's hoping OSX 10.5 includes Apache 1.2.
What you do is you first edit your hosts file:
sudo nano /private/etc/hosts
Add these lines to point to your local machine domains:
127.0.0.1 host2.example.com
127.0.0.1 Test
Here we are using
http://host2.example.com/
and
http://Test/
as our domains. When you are set up click these links and the pages should open in your browser.
Edit the file at
sudo nano /private/etc/httpd/httpd.conf
to include these Virtual Domain blocks somewhere in the file:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /Library/WebServer/Documents/Test/
ServerName Test
ServerAlias Test
ErrorLog /Library/WebServer/Documents/logs/Test-error_log
CustomLog /Library/WebServer/Documents/logs/Test-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /Library/WebServer/Documents/host2/
ServerName host2.example.com
ErrorLog /Library/WebServer/Documents/logs/host2.example.com-error_log
CustomLog /Library/WebServer/Documents/logs/host2.example.com-access_log common
</VirtualHost>
Note that the file does not even contain sample blocks in the config file as Virtual Hosts has been a recent invention. Apache 2, however, integrates VHosts seamlessly.
In this example, I transcribed paths from the default OSX 10.4 Apache installation, so you may need to adjust the paths a bit since it is untested. Please report back so we can adjust the documentation accordingly.
When finished, put some default docs in the target folders and restart Apache:
sudo apachectl restart
You should be up and running. You may need to reboot for the hosts file to activate, unless you know how to dump the cache like a Unix geek.
Oh, and thanks for the patience on this one, I have been figuring it out too. -
Virtual hosts in apache defaults to first host
On my MacMini I have set up apache to use virtual hosts I and use a mounted USB drive to host the sites (in my case /Volumes/Work1/www as root). I have configured 3 sites and switch on the subdomain (in my case and in order in the virtual hosts file: hbc1.helsted.net, consulting.helsted.net, store.helsted.net).
On the MacMini I have inserted the urls in the hosts file to point at localhost for two of the entries and all work beautifully on the MacMini for those two. Anywhere else (and from the MacMini on the one not in the hosts file) the system defaults to the first entry in the virtual hosts config file (as the documentation says it will if the url is not recognized) which is displayed in the browser and which has entries in the log file.
After some time the server occasionally refuses to serve the pages and I get a 403 error (access denied). Again not on the MacMini with the hosts file entries. Looking at the error log from apache in that case it appear that it has got the full url served as it is in the log file.
Restarting the web share removes the 403 error (until next time).
Any hints on how to to resolve my two issues?Thanks for the reply, my vhosts config file contains the following (note that the viewer in the forum browser removes the initial #es on the comment lines):
# Virtual Hosts
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
# Please see the documentation at
# <URL:<a class="jive-link-external-small" href="http://">http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
# You may use the command line option '-S' to verify your virtual host
# configuration.
# Use name-based virtual hosting.
NameVirtualHost *:80
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Volumes/Work1/www/hbc1"
ServerName hbc1.helsted.net
ErrorLog "/private/var/log/apache2/hbc1.helsted.net-error_log"
CustomLog "/private/var/log/apache2/hbc1.helsted.net-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Volumes/Work1/www/consulting"
ServerName consulting.helsted.net
ErrorLog "/private/var/log/apache2/consulting.helsted.net-error_log"
CustomLog "/private/var/log/apache2/consulting.helsted.net-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Volumes/Work1/www/store"
ServerName store.helsted.net
ErrorLog "/private/var/log/apache2/store.helsted.net-error_log"
CustomLog "/private/var/log/apache2/store.helsted.net-access_log" common
</VirtualHost>
<Directory /Volumes/Work1/www>
Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Message was edited by: skhelsted -
I have followed the 'Powers doctrine' in defining virtual
hosts for my
Apache installation. This is the relevant section in the
httpd.conf file
<VirtualHost *:80>
DocumentRoot "C:/Program Files/Apache
Group/Apache2/htdocs/wild"
ServerName wild
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/Program Files/Apache
Group/Apache2/htdocs/practical"
ServerName practical
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/Program Files/Apache
Group/Apache2/htdocs/navenewell"
ServerName nni
</VirtualHost>
Yet none of them seem to work. When I browse to
http://wild, for example, I
get a not found error. I still need to use
http://localhost/wild to get
there. What's that about?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================no problem glad I could return the help you have given me in
the past
Dave Buchholz
I-CRE8
www.i-cre8.co.uk
"Murray *ACE*" <[email protected]> wrote
in message
news:[email protected]...
Hmm - good idea.... I believe that cracked it.
Thanks, Dave!
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Dave Buchholz" <[email protected]>
wrote in message
news:[email protected]...
> have you added the entries to the windows hosts file ?
>
> --
> Dave Buchholz
> I-CRE8
> www.i-cre8.co.uk
>
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:[email protected]...
> Dave:
>
> I have now added that line to httpd.conf, and restarted
Apache, but it's
> still not working as I would expect it to.
>
> The documentation mentions a command line I can use with
Apache to check
> the
> virtual server configuration, but it's *nix, referring
to
> /usr/local/apache2/bin/httpd -S. This would be handy,
but I do not see an
> httpd file or folder within the Apache2/bin folder on my
XPHome system.
> Any
> ideas?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "Dave Buchholz"
<[email protected]> wrote in message
> news:[email protected]...
>> Murray,
>>
>> you don't appear to have actually defined the
localhost folder, I use
>> apache
>> 1.3 and this is how my http.conf file looks:
>>
>> NameVirtualHost 127.0.0.1
>>
>> <VirtualHost 127.0.0.1>
>> DocumentRoot "C:\Program Files\Apache
Group\Apache\htdocs"
>> ServerName localhost
>> </VirtualHost>
>>
>> <VirtualHost 127.0.0.1>
>> DocumentRoot "C:\Program Files\Apache
Group\Apache\htdocs\i-cre8"
>> ServerName i-cre8.local
>> </VirtualHost>
>>
>> <VirtualHost 127.0.0.1>
>> DocumentRoot "C:\Program Files\Apache
>> Group\Apache\htdocs\standardsitephp
>> ServerName standardsitephp.local
>> </VirtualHost>
>>
>> <VirtualHost 127.0.0.1>
>> DocumentRoot "C:\Program Files\Apache
Group\Apache\htdocs\xhtmlsitephp
>> ServerName xhtmlsitephp.local
>> </VirtualHost>
>>
>> <VirtualHost 127.0.0.1>
>> DocumentRoot "C:\Program Files\Apache
Group\Apache\htdocs\cricketclub
>> ServerName cricketclub.local
>> </VirtualHost>
>>
>> I use the suffix .local on all my localhost sites to
indentify them. I
>> used
>> this tutorial
http://apptools.com/phptools/virtualhost.php
as the basis
>> for
>> my set-up if that helps.
>>
>> --
>> Dave Buchholz
>> I-CRE8
>> www.i-cre8.co.uk
>>
>>
>
>
> -
Oracle9iAS R2 - Virtual Hosts with Portal and SSO with OIDDAS application
Hi!
I have installed a the machine with name minsk.discover.local. The machine have installed Infrastructure and Portal. The instalation is sucessfull and i work fine. But i have publish Portal to WEB with name intranet.discover.com.br. The Oracle describe:
1 - Create the virtual hosts in SSO and PORTAL - OK
2 - run ptlasst to create SSO Partners Applications - OK
After this steps iwork fine with Portal and SSO, but when i click in portlet to create user to access the application OIDDAS, the Portal redirect to login page of SSO in address mct.com.br, the internal name, when then name not responde in the internet.
I need a help!!!!
Marcio MestiI just spoke to the Oracle App server admins, the two servers in question are clustered.
So my question changes slightly to:
What is the best way to install and configure a webgate for clustered Oracle App servers with mulitple virtual hosts, that are residing behind a load balancer (Traffic Manager)?
Thanks,
Andy -
How to set up Virtual Hosts in Apache (OS X Server 10.9)
I want to host more than one website on my mac mini with OS X Server 10.9
1.) I edited /etc/apache2/httpd.conf for uncommenting the include line:
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf
2.) I edited /etc/apache2/extra/httpd-vhosts.conf and added:
<VirtualHost *:80>
ServerName cammino-al-dente.net
ServerAlias www.cammino-al-dente.net
DocumentRoot "/Library/Server/Web/Data/Sites/cammino-al-dente.net"
ErrorLog "/private/var/log/apache2/cammino-al-dente.net.com-error_log"
CustomLog "/private/var/log/apache2/cammino-al-dente.net-access_log" common
ServerAdmin [email protected]
</VirtualHost>
<VirtualHost *:80>
ServerName sutterer.net
ServerAlias www.sutterer.net
DocumentRoot "/Library/Server/Web/Data/Sites/sutterer.net"
ErrorLog "/private/var/log/apache2/sutterer.net-error_log"
CustomLog "/private/var/log/apache2/sutterer.net-access_log" common
ServerAdmin [email protected]
</VirtualHost>
3.) then I edited /etc/hosts/ to spoof my IP address to the domains:
127.0.0.1
localhost
127.0.0.1
cammino-al-dente.net
127.0.0.1
www.cammino-al-dente.net
127.0.0.1
sutterer.net
127.0.0.1
www.sutterer.net
255.255.255.255
broadcasthost
::1
localhost
fe80::1%lo0
localhost
Then I restarted Apache...But nothing happens :-(
I could reach my website cammino-al-dente.net only by using the Server Default-entry, chancing the entry to my cammino...-folder
Regards
Fred MarioIn the /etc/apache2/extra/httpd-vhosts.conf file check this line exists:
NameVirtualHost *:80
This solve same issue for me.
I hope it's help. -
Problem getting db connection when using virtual hosts / tomcat / apache
Hello,
I have servlets that use a connection pool to query an oracle database. When running Tomcat 5.5 stand-alone, everything works fine. But the same servlets do not work when running them on a server tomcat and apache integrated with jk and using virtual hosts. The problem is the connection pool, because servlets not using the pool also work fine.
Does anybody have any idea why this is happening?
Thank you.
LoganHi Saish,
Thank you for helping.
Try connecting with the machinen's IP, if this is a viable strategy for you (meaning the database IP is not dynamically assigned).I'm not sure how to do this. Here is a copy of my context.xml:
<Context path="" docBase="" debug="0">
<Resource name="jdbc/CraigsList" auth="Container"
type="javax.sql.DataSource" username="craigslist" password="xxxxxx"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:GRI"
maxActive="8" maxIdle="4"/>
</Context>
Does this help?
Thanks. -
Using Name-based Virtual Hosts on Apache
Hi!
We have Novell SBS 6.5, a tree with 3 servers:
1. Border Manager sp1
2. GroupWise (NAT) sp1
3. WEB (NAT) sp6 - Apache 2, MySQL, PHP.
My site is at http://www.kalmanovitz.co.il.
I want to try to add a new sub domain and\ or a Domain using Name-based Virtual Hosts (2 or more domains on same IP number).
1. My BM server use SSL. Will it influence SSL? How?
2. What I need to change on my servers?
3. What my ISP need to update\change on his system?
4. Can i try to experience the changes without my ISP intervention?
Please help.
TIA
NanuNanu Kalmanovitz,
> 1. My BM server use SSL. Will it influence SSL? How?
Not protocol wise, but you will get asecurity warning that certificate
and host names do not match.
> 2. What I need to change on my servers?
Httpd.conf
> 3. What my ISP need to update\change on his system?
DNS, pointers to the domains
> 4. Can i try to experience the changes without my ISP intervention?
>
Yes. Add the names to the workstation's hosts-file
- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)
Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement
Using VA 5.51 build 315 on Windows 2000 build 2600
Maybe you are looking for
-
10.5.6 Update Breaks Time Machine backup of FileVault home folders?
Time machine used to backup FileVault home folders when I logged out. After 10.5.6, it just logs out and does not do the backup. Anyone else? s
-
Hi guys. I have an HP desktop and a Dell SR2320L Monitor. It was working fine until a few months back. I was out of town, came back last week and now every time I start my PC it just stays there "Entering Power Save Mode". I tried almost everything r
-
Hi, I am new to Weblogic 8.1 and was with .NET for last couple of years. I need to populate a list box in my jsp page. I have a database control method that returns a String array and this should be shown in the list box. I would like to kn
-
HT3209 How can I redeem my digtal copies from my cloud without having to pay for it?
How can i redeem my digital copies from my cloud without having to pay for it? I bought Disney's Frozen and it came with the Frozen and The Incredibles digital copy which i have in my cloud but they wont let me download it keeps trying to charge me a
-
Hi everyone, I am very impressd with the idea of adobe kuler and the fact that you can share is great. Here is my question, lets just say you have designed a layout with a Red background, Green font, Blue stroke for example. But you want to give them