- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Question about virtual hosts on Apache 1.3...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 07:28 AM
03-24-2004 07:28 AM
My system runs Apache (aka CSWS) 1.3, and is (via a firewall) continously connected to the Internet.
In DNS at my ISP, "www.domain.tld" refers to my FW's outside NIC (aaa.bbb.ccc.ddd, and this translates all http-traffic (port 80) to my Alpha (having a public (non-routed) address.
I have a second 'web' "anotherweb.domain.tlb" defined, it is in DNS as wel, and also referring my (outside) IP address. Still on port 80, I assumed having this defined as a
However, is doesn't work as I expected.
"http://www.domain.tld" shows my 'normal' webpage (what I wanted), but so does http://anotherweb.domain.tlb, which should be VERY different.
Both webs are to be accessed by port 80, so a different port is not an option (at least, if avoidable).
I know it must be possible but somewhere I lost track.
If you need a part of httpd.conf (at least, part of it), tell me which part and I'll attach it.
Willem
OpenVMS Developer & System Manager
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 05:34 PM
03-24-2004 05:34 PM
Re: Question about virtual hosts on Apache 1.3...
could you post your httpd.conf file?
Regards
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2004 06:06 PM
03-24-2004 06:06 PM
Re: Question about virtual hosts on Apache 1.3...
Regards
Dieter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 06:15 PM
03-25-2004 06:15 PM
Re: Question about virtual hosts on Apache 1.3...
There is a third web mentioned, but that will be started using a specific port so I can transfer control directly in the firewall.
Another matter - related to this question
I know this won't work if SSL is enabled. If I t to use the same (single IP-address, single port) approach, how to confure that? (MOD_SSL will be inserted before the virtual hosts (as Alan Winstoin suggests))
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 08:24 PM
03-25-2004 08:24 PM
Re: Question about virtual hosts on Apache 1.3...
remove the webx.domand.tld entry from the VirtualHost directive and try:
...
...
Dieter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 09:00 PM
03-25-2004 09:00 PM
Re: Question about virtual hosts on Apache 1.3...
That what I originally had, but it's not what I require. For access on my LAN it's no problem to do that, but since the webs need to be accessable from outside, this doesn't seem to work.
To clearify: in DNS, all names resolve to just ONE IP-address. The firewall has no facilities to discriminate in names - so all HTTP-requests will be transferred to 192.168.0.2.
If I specify the virtual hosts like you said, the second and third are not accessable from outside since there is no path to them, so these webs will never show.
I have tried to specify 192.168.0.2 for all, but even that doesn't work properly, it's always the first web that will show up.
For what I understood from the documentation, multiple specifications are possible, for instance for internal and external access, and for named virtual hosts specification of the name in the
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 10:10 PM
03-25-2004 10:10 PM
Re: Question about virtual hosts on Apache 1.3...
I need access to my home system, I run a similar construction on that system (DSL-Router, dyndns, all the dyndns-names are mapped to one IP-Address, multiple addresses on the VMS Box) but I'll not be back home until late.
Dieter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 08:39 PM
03-28-2004 08:39 PM
Re: Question about virtual hosts on Apache 1.3...
> of the name in the
> a requirement.
That's not quite correct. The name of the virtual host (preferably specified by an IP address) is supplied with the ServerName statement inside the
See http://httpd.apache.org/docs/dns-caveats.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 09:32 PM
03-28-2004 09:32 PM
Re: Question about virtual hosts on Apache 1.3...
So I do NOT need "webx.domain.tlb" in
...
...
As you will see from the previously attached file, this IS already the case. As stated before, I _need_ them to be on ONE address.
however, specifying a name in
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 10:02 PM
03-28-2004 10:02 PM
Re: Question about virtual hosts on Apache 1.3...
Using DNS names in VirtualHost statements will lead to problems whenever DNS fails.
Using IP addresses without ServerNames will likewise fail in case of DNS problems, because Apache tries a Reverse Lookup then.
Plus it will not work with multihoming (i.e. multiple servers on one IP).
I see a "*" in the first VirtualHost statement of your config file that bothers me. I've no idea how Apache reacts to that.
How does VMS' TCP/IP resolve web2.domain.tld and web3.domain.tld? Try it using nslookup or dig (if present).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2004 11:52 PM
03-28-2004 11:52 PM
Re: Question about virtual hosts on Apache 1.3...
For what I understood, "*" as address means "any bound address"; interpreted by me as "specified name will be used, regardless the specified address" - if more BindAddresses are used (as in my case).
>>How does VMS' TCP/IP resolve web2.domain.tld and web3.domain.tld? Try it using nslookup or dig (if present).
I'll check what my VMS machine thinks of IP-addresses of these webs but I'm pretty sure it finds it on the ouside side of the router (which is correct) - as will any PC inside the firewall. None of them is specified on the local DNS (on my VMS-box as well).
I specified the router as forwarder and in the router's log, I see translation requests from the VMS-box for domains it cannot resolve (it's the primary DNS server on the intranet)
Anyway, I'll take your suggestion and remove the names, and put expolicitly the internal address in
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 12:34 AM
03-29-2004 12:34 AM
SolutionAddr can be
The IP address of the virtual host
A fully qualified domain name for the IP address of the virtual host.
The special name _default_ can be specified in which case this virtual host will match any IP address that is not explicitly listed in another virtual host. In the absence of any _default_ virtual host the "main" server config, consisting of all those definitions outside any VirtualHost section, is used when no match occurs.
cf. http://httpd.apache.org/docs/mod/core.html#virtualhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2004 07:55 AM
03-29-2004 07:55 AM
Re: Question about virtual hosts on Apache 1.3...
Consider this known.
I have just checked on my VMS system, and all webs are found using DIG on the address expected: on the _outside_ address (so NOT 192.168.0.2).
Anyway - you put me on the right track:
...
same for web2 and web3.
From outside: it works. From inside, it works by separate addresses (192,168.0.11, .12, and .13) but not by name. I'll check on that later.
NO _default_ - yet - but since web1 is the first of the virtual webs, that would automaticly be the default one. At least, says Alan Winston.
OpenVMS Developer & System Manager