Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !

Sujet : serveur virtuel avec oracle http server [ Divers / Général ] (krikete)

samedi 3 mars 2007 à 10:04:45 | serveur virtuel avec oracle http server

krikete

slt a tous;

je suis entrain de faire une application web avec jdevloper 10g et comme serveur d'application OC4j je souhaterais créé un serveur virtuel avec oracle http server (piloter par apache) j'utilise oracle 9i .

je ne sais pas comment proceder pour créé mon serveur virtuel un tutoriel ou un exemple me serais d'une tres grande aide.

merci

lundi 5 mars 2007 à 13:33:34 | Re : serveur virtuel avec oracle http server

sylvunix

Si j'ai bien compris, tu as réalisé une application en Java que tu aimerais publié dans une instance de Oracle Application Serveur.

Je peux de donner des informations mais avant tout confirmes-moi ta demande.



lundi 5 mars 2007 à 17:52:59 | Re : serveur virtuel avec oracle http server

krikete

l'application je l'ai faite avec java exactement jdevloper il travail avec OC4j (oracle container for java)  comme serveur d'aplication , et la je veus créé un serveur virtuel (virtual host ) avec oracle http server c l'equivalent de apache voila.......

merci

mardi 6 mars 2007 à 07:53:41 | Re : serveur virtuel avec oracle http server

sylvunix

Le serveur Oracle HTTP Server se configure effectivement comme Apache. Il faut donc que tu ajoutes une section <VirtualHost> dans ton fichier httpd.conf.

J'ai trouvé une doc assez complète sur le sujet que je joins à mon message.

Je reste à ta disposition pour plus d'information.

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 [ Lien ] 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.

mardi 6 mars 2007 à 19:20:15 | Re : serveur virtuel avec oracle http server

krikete

merci c'est tres jentil de ta part  je te contacte en cas de probleme

jeudi 15 mars 2007 à 16:32:05 | Re : serveur virtuel avec oracle http server

krikete

slt a tous,
je devloppe une application avec jdevloper 10 g et comme serveur d'application j'utilise OC4J ( oracle container for java ) je travail avec les service web et jsf , j'ai cree un serveur virtuel avec OHS (oracle http server )

mais je ne sais pas comment conecter oc4j a OHS pour ke mon application puisse fonctioner?????????

c'est tres urgent si kelkun peut m'aider sa me sauvera la vie car c'est un projet de fin d'etudes.

merci




Cette discussion est classé dans : server, serveur, http, oracle, virtuel


Répondre à ce message

Sujets en rapport avec ce message

aide pour jeu multijoueur [ par milocco ] Bonjour, j'ai developper un jeu de petansue en flash multijoueur (http://www.petanque52.com). le server multijoueur est en java, un socket server clas JFileChooser et client/server [ par guit38 ] bonjourJ'ai une application client/serveur, et je souhaite voir et sélectionner à partir du programme client des fichiers situés sur un ordinateur dis RTP server [ par byosra ] Bonjour, je suis en train de développer un serveur RTP et j'ai le problème suivant : comment faire pour que le client intialise la session RTP avec le Tomcat , serveur , ..... [ par g_fuck ] Salut      Ca fait plus de 2 ans que je m'exerce en java !!! Et je n'ai pas encore compris a quoi servirait  TOMCAT .... on dit que c'est un serveur.M J2ME - serveur HTTP [ par bsophia ] Bonjour tout le monde, J'ai un exposé sur comment rendre une application j2me telechargeable, sur un vrai mobile? Comment l'installer sur un serveur? JAR et Serveur Web [ par GRenard ] Bonjour,Je voudrais savoir s'il y avait un moyen de désactiver l'option que lorsqu'une classe n'existe pas dans le .jar (chargée par exemple par réfle Sql Server + Analyseur de Requetes [ par syndrael ] J'accède à un serveur SQL Server distant via l'Analysuer de requetes. Mais j'ai oublié de garder une procédure stockée dans un fichier et donc celle-c serveur http webcam " clé en main"... [ par eric35 ] Salut à tous Bon je suis un petit nouveau et pas très bon en programmation .... d 'où mes questions un poil simplettes sur ce site !j 'ai développé un Proxy HTTP [ par junior31490 ] Bonjour,Je vous écris parce que j'ai vraiment besopin d'aide.Voilà, je dois développer un petit proxy tout simple, permettant de récupérer une requête authentification et autorisation avec oracle et sql serveur 2000 [ par Ngos ] s'il vous plait j'ai un pétit projet j2ee où j'utilise spring,jpa,hibernate et jsf je ne veut pas creér une table utilisateur en bd et je voudrais uti


Nos sponsors

Sondage...

CalendriCode

Janvier 2009
LMMJVSD
   1234
567891011
12131415161718
19202122232425
262728293031 

Consulter la suite du CalendriCode

Téléchargements

Logiciels à télécharger sur le même thème :



Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel BAÏSE, Merci à Vincent pour ses précieux conseils
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés
Temps d'éxécution de la page : 0,218 sec

Google Coop CodeS-SourceS Google Coop CodeS-SourceS


Certaines images présentes sur le site (notament certains avatars) sont issues des collections IconShock, donc si vous souhaitez utiliser ces icons vous devez les acheter, ne les copiez pas et ne utilisez pas dans vos sites et applications sans les avoir commandé.