Hiding the Port in a Virtual Host/Server-name Alias
I need some guidance/help with the HTTP Server in AS 10g. We have several new Portal sites with a mix of forms, reports, and pl/sql server pages. We wish to make these services available from the internet via an aliased hole in the firewall.
We have our public alias of Alias.CompanyWebsite.com mapped to the server-name, but we'd like to get the alias mapped to servername:port. I've tried to get this set up using virtual hosts in the HTTP server, but I'm having no luck. I'm also having trouble finding documentation on how to this.
Is there a way to hide the server-name and port number via a virtual host (alias) in HTTP Server and/or Web Cache? If so, how do you accomplish this?
Thanks,
Josh
Usually it is like this:
outside name: www.acme.com
oudside port: 80
inside name: inside.acme.local
inside port: 7778 (if you have a seperate machine for the middle tier)
In the Webcache you'll need a site
www.acme.com with port 80
and an origin server
inside.acme.local with port 7778
Then create a site-to-server mapping from www.acme.com to inside.acme.local
If your firewall listens to another name or does something with the ports you need to change the site accordingly.
cu
Andreas
Similar Messages
-
My client has a website up and running. He had me redesign it in Muse. What do I need and how do I publish the new design to his host/server?
Hi Jefffrey
I believe your query is answered in live chat.
Please feel free to contact us again.
Thanks,
Sanjit -
Host server name is blank.
Hi All,
we are running virtual machines on host servers. we have installed scom agents on virtual machines. when I go to windows computers in monitoring pane and select display attribute as "host server name" and
"virtual machine" it is blank when IP address, Network name etc are getting populated.
Please help me in getting this host server name and virtual machine field getting populated.
Regards,
Abhishek YadavHi,
Have you imported the latest Hyper-V management pack? If not, please try it.
http://www.microsoft.com/en-us/download/details.aspx?id=36438
Niki Han
TechNet Community Support -
Hiding the port number from the url
Hi All,
In our applications built using Weblogic Portal 10.3, the url to access the application doesnt have the port number. It is simply like http://<server-name>/<context> no port at all. Is this some configuration that is available inside weblogic adminstration console? The domain has both the default port and the SSL port enabled which are running in 7001 and 7002 respectively. Please let me know as how to do this configuration as I am growing haywired on this it has been about a week and have not found an answer yet. Please throw some light on this and let me know if you need further details
Thanks
Ashwinyou should install apache server to handle all the requests on port 80 and froward it to weblogic server using wlp plugin
please check this link
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/plugins/apache.html
any request http://yourapp/context will be mapped to http://youapp:7001/context -
I have installed Weblogic 7.0 on Windows 2000
server name = mb_sarah1
server ip = 192.168.27.35
application name = sarah
In a Servlet, I try to get an Object (that I've put earlier) in the
Session
When I use the url http://192.168.27.35:7001/sarah, all is good
When I use the url http://mb_sarah1:7001/sarah, the Object that I get
is null
I've changed nothing expect the url for accessing the Web Application
in the Adress Field of my Web Browser
Thanks.DNS lookup is configured as outlined in the previous reply. But, looking at your /etc/hosts file:
10.103.10.125 ; oen11g.grid.com oen11g I would remove the semicolon.
Btw, the hosts file is also somewhat different in Linux since it puts the name of the server at the same line of localhost.
The Oracle installer expects it there.. e.g.: 127.0.0.1 gird.example.com grid localhost.localdomain localhost
You can use e.g. export ORACLE_HOSTNAME=grid.example.com to work-around the issue. -
How to get the SQL Primary and Mirrored Database Server Name from Witness Server
Hello,
Can Someone help me with the way to get SQL Primary and Mirrored server name from Witness server?
Any Powershell script/SQL Query..etc or share the alternative?
Regards,
Julieselect principal_server_name,mirror_server_name,* from sys.database_mirroring_witnesses
-Prashanth -
Hi,
is there like session/repository variable that holds the server/host name and port? i would like to get these values programmatically.
thanks.In my humble opinion do not see any use in setting up these details on variables. The fact that these could be used only after logging on, which will obviously need these details manually. If you require it for tracking purpose, You could do it manually, as they are going to be static at least for that session.
-
Email shows my host server name not my email address?
Golive user, using ProcessForm3 from mindpalette. Need to know what line to add/ an email so my server address won't show up in the recipients "from" box when they receive the contact/web submission form I have added to my clients websites. If someone is interested in helping me, I will attach source code for you to review.
Also, need to know where to add additional attachment size code to my php.ini file.
Thank you for your help in advance.I'm not familiar with the mindpalette script but somewhere in there should be a variable you might set. Search it for 'send' or 'sender'.
There are a few places in PHP.ini to set attachment size as such an operation may affect both the size of the attachment and the RAM needed to process it. PHP.ini should be commented as well for this. You may wish to contact your web host for assistance as they might limit resources to you that will override what you set in php.ini. -
How can I obtain the host name of the server the Flex
application/SWF is running under?You can get the URL from the application.application.url
property, then parse the host name.
Tracy -
Urgent: what are "virtual host" and "external alias" used for on SICF?
I wonder what is their functionality?
Please help. Points guaranteed. Thanks!Payal:
Your help is great!
The link says:
<b>1.2.5.6
acmegate.acme.com
<b>acmenet.acme.com</b>
If more than one host name is assigned to one IP address, one host name is the default name, and the others are aliases. In the table, the default name is in bold type.</b>
We want:
1) for all incoming requests from the internet to the ITS use:
acmegate.acme.com(i.e. the default name. The user will type http://acmegate.acme.com:####/xxxxxx);
2) for all responses from the ITS to the internet use:
acmenet.acme.com(i.e. the alias. The user will get
http://acmenet.acme.com:####/xxxxx).
If you could help with this, I really appreciate with 10 points.
Best regards. -
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 -
Move just wikis to new Lion server (redirect one virtual host)
I have a bunch of services on my Mac Pro with Snow Leopard Server, including file sharing, VPN, subversion, wikis, several websites, a few webapps, etc. I don't want to upgrade that server right now, but I'd like to try upgrading the wikis to Lion Server and Wiki Server 3.
How could I move the wiki's to Lion Server on another machine? They are all accessed through a seperate virtual host.
We only have one public IP right now (I maybe could get a second public IP but don't want to just for this.) Everything hits my router (dd-wrt device, so quite configurable) which sends port 80 (and most other ports) to my snow leopard server.
One idea would be to have the router redirect another port (8080 or something) to the new lion server, and then put a redirect page on the original wiki address (port 80) to redirect over to 8080, which would then go to the other server. But that's not really ideal because then the users of my wiki would see it on a new port and a lot of times ports other than 80 are blocked by firewalls (not my firewall, but firewalls closer to my users.)
So does anyone have an other ideas on how to redirect the traffic of one virtual host to another internal machine behind NAT?
Separate question: any experience migrating a wiki from Wiki Server 2 to Wiki Server 3? Did it work well?
JohnThe best way to do this is to take the contents of /Library/Collaboration and put it in a location accessible from your newly set up Lion install. In Server.app, enable Wiki, and run:
sudo wikiadmin migrate -r /Path/To/Library/Collaboration
After that, start the wiki and you should be good to go. You should bind your Lion server to the same Directory as the Snow Leopard server, to ensure permissions and users carry across successfully.
A. -
Serving virtual hosts with different instance of weblogic6.1
We are using the apache plugin and weblogic6.1. Is it possible to send the request
for each virtual host to a different instance of weblogic6.1 instance? If so how?
For ex in my httpd.conf I want to say
<VirtualHost abc.xyz.xom>
WebLogicHost 192.168.10.20
WebLogicPort 8001
</VirtualHost>
<VirtualHost cde.xyz.com>
WebLogicHost 192.168.10.20
WebLogicPort 8002
</VirtualHost>
Thanks in Advance
VirenWe have two virtual hosts for our SSO server.
Intranet users use
Name: sso.parlinkom.gv.at
Address: 161.110.13.4
but internet user use
Name: clsso.parlinkom.gv.at
Address: 161.110.1.17
Yes, we have one portal.
Thank you in advance
Wolfgang -
Server Migration failed to migrate web server virtual hosts
I just migrated from an my Mac OS X Server 10.4 to a brand new 10.6 machine. It seems to have copied all my files but failed to bring across the extensive list of virtual hosts I was serving. Entering them in one by one is going to take a while, so does anyone know how to pull them across? I have the old server attached in target mode, but not sure where apache keeps the configuration file for that.
After some more digging, it appeared that migration assistant just completely failed to set up the Open Directory on the new server. Fortunately, I managed to get the old drive cloned to an ATA drive, which I used to boot an ancient G4 tower, from whence I was able to do an Open Directory export and import into the new server.
I seem to be having the same inability to Kerberize the Open Directory that a lot of other people seem to have, but I don't actually need that feature, so it's not a big deal. -
ICal server: "no virtual host"
iCal won't start. When I try to start iCal service I get:
"no virtual host"??I'm getting similar problems. I HAVE activated DNS, and setup a primary zone with a machine record for the xServe with it's local IP address. And I reset the TCP-IP settings for the server to point to itself for DNS. (I also setup DNS forwarding in the DNS control panel so that general requests are forwarded to our usual service provider DNS servers.)
Use of network utility --> lookup confirms that this entry is correct.
HOWEVER, when I this record as my hostname (server1.myexample.com) I get the following error: "No virtual host found for iCal Service".
Do I need to do anything else in my DNS to make this work? Do I need some form of alias or service record? Am I using the wrong thing as my hostname for the iCal configuration? is that additional information I can provide to help get a diagnosis?
Thanks in advance for any thoughts...
Maybe you are looking for
-
Simple program with array do not want to compile
Please do not laugh but I wrote the following program to create a array of strings. The program do not want to compile and I can not see why. Can somebody please tell me what I am doing wrong. class MyArrayOfStrings5 puplic static void main(String[]
-
I know this might sound like I'm new to iMac, but I am so I'm sorry for such a lame silly question. I have a 27" iMac I use at work and I have an iPhone. I plug in my iPhone to my iMac input on the back of the computer to listen to music from my iPho
-
How do I get a page count from the HP Photosmart 5514?
How do I get a page count from the HP Photosmart 5514?
-
Hi, We have a SAP ECC 6.0 system with support pack SAPKH60009. I have upgraded it to SAPKH60011. SAP has added a new field KSTAR in table BSEG and since the customer have added their own Z fields this table has come up in SPDD or SPAU. I am familiar
-
Set up Xorg inside guest VirtualBox
I just can't seem to make it work. These are the last lines of the output after I try to launch startx as root: (==) Log file: "/var/log/Xorg.0.log", Time: Sun Apr 27 23:33:07 2008 (==) Using config file: "/etc/X11/xorg.conf" (II) Module "ddc" alread