Web sharing - virtual hosts and CGI
This topic might be a bit advanced for this forum, I'm not sure. But here goes.
I'm trying to set up my laptop to act like a web server so that I can do test development on it. I have two web sites, and have successfully created virtual hosts for each of them.
The part that I'm struggling with now is enabling CGIs, as I want to learn to write CGIs in Perl. I can't seem to find any site that discusses how this is done in Leopard. One said something like "just put the CGIs into /Library/WebServer/CGI-Executables and it'll work", but of course, since I've got virtual hosts defined, it seems that anything addressed to "localhost" defaults to the first virtual host and thus there is no way to refer to a CGI placed in that location. Besides which, I'd like to know how to enable CGIs placed in a folder on each of my virtual sites, so that I could test them in place.
Any ideas?
One said something like "just put the CGIs into /Library/WebServer/CGI-Executables and it'll work", but of course, since I've got virtual hosts defined, it seems that anything addressed to "localhost" defaults to the first virtual host and thus there is no way to refer to a CGI placed in that location.
That is an incorrect assumption.
By default, Apache is configured to recognize any URI that begins with /cgi-bin and serve that request via a CGI script in /Library/WebServer/CGI-Executables
This is true even though each site's DocumentRoot is set somewhere else on the file system (that's by design since it makes it harder for a remote attacker to affect your CGIs)
Since it does not matter which site the request was on, any /cgi-bin request would be served from there, so:
http://www.domain1.com/cgi-bin/some.cgi
http://www.domains2.net/cgi-bin/other.cgi
would both be served from /Library/WebServer/CGI-Executables even though they are for two different virtual hosts.
Now, of course, if you want each site to be separate and have its own set of CGIs (maybe some.cgi for domain1 does something different from some.cgi on domain2) then this approach causes problems. For this you will need to edit each site to have its own cgi-bin directory.
Unfortunately (although I haven't tested it) I think Matt's solution won't work because Apache is going to catch all /cgi-bin/ requests and serve them from /Library/WebServer/CGI-Executables, never getting to the cgi-bin directory within each site's documentroot.
To set site-specific CGI directories you need to add a ScriptAlias command to each site's .conf, such as:
ScriptAlias /cgi-bin/ /path/to/site/cgi-bin/
This tells apache that any request for /cgi-bin/* should be served from /path/to/site/cgi-bin
Ideally the path should be outside of the site's normal document root, but it can be inside if you really want.
Similar Messages
-
Following the book in chapter 2 I think Ivé followed everything correctly, but have encluded all the things I've edited below.
I was using wamp with no problems but after trying to set up a virtual host and now using xampp im abit lost its probabsomething stupid but I can find the prob.
(This post is abit long and dragged out so I used some colour to try ease the reading..)
When I try to view a dynamic page in live view or in firefox I get the following error:
**when using:
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
result:
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
thegoodlife
2009/10/13 12:47:48 PM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
*when using:
<VirtualHost *:80>
DocumentRoot c:/htdocs
ServerName localhost
</VirtualHost>
result:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
thegoodlife
2009/10/13 12:32:58 PM
Apache/2.2.12 (Win32) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k mod_autoindex_color PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0
This is what I've done, blue indicating where I have or was meant to edit, red being the relivant context. (hope it helps )
1. Created a new folder called htdocs (C:\htdocs)
2. Changed the pathname to:
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "C:/htdocs"
and
# This should be changed to whatever you set DocumentRoot to.
<Directory "C:/htdocs">
3. Created vhosts folder; with a sub-folder called thegoodlife (C:\vhosts)
4. entered new vhost:
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 dwcs4
127.0.0.1 thegoodlife
127.0.0.1 bin.errorprotector.com ## added by CiD
5.It says uncomment the command by removing the #, (Supplemental configuation.), but this is the origional file; already uncommented?
# Real-time info on requests and configuration
Include "conf/extra/httpd-info.conf"
# Virtual hosts
Include "conf/extra/httpd-vhosts.conf"
# Distributed authoring and versioning (WebDAV)
Include "conf/extra/httpd-dav.conf"
6.Set the permissions and changed the code as instructed, unsing (c:/xampp/htdocs) as advised.
# You may use the command line option '-S' to verify your virtual host
# configuration.
<Directory C:/vhosts>
Order Deny,Allow
Allow from all
</Directory>
# 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>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/dwcs4
ServerName dwcs4
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/thegoodlife
ServerName thegoodlife
</VirtualHost>
Then creating the site definition:
local root forlder: C:\htdocs\thegoodlife\
testing server folder: C:\vhosts\thegoodlife\
URL prefix: http://thegoodlife/
hope i've covered all area's where I could have gone wrongJust one more thing - the description of what i did while first Kernel appeared:
Happened 2 days ago. Wasn't turning it off for like a day, only sleep mode by closing it. Worked fine all day, wasn't doing anything, except for checking mail 2-3 times and having windows 7 virtual machine opened but doing nothing, everything was going fine. Then closed it without turning off.
Opened 3-4 hours later, everything was working fine for 30 minutes of checking mail, then Kernel appeared. After that pretty much everything i did is described in part 1-5.
Note: all the time MBP was connected to internet via wifi, so updates to both MBP and virtual machine of all programs were possible.
I only shared downloads and desktop folders, so windows couldn't have access to system folder of Mac Os.
Hope this might help...Thanks again. -
Apache, name based virtual hosts and multiple servers.
Hi,
Ive been playing with Apache and name-based virtual hosts for a while now, but, ive been doing it with one single server... now i have the need to forward a name-based request to another server inside the intranet (wich doesnt have a public IP, but a private)...
Something like this:
internet -----> Webserver (name based vhosts) ----> intranet-webserver
Where "webserver" has several domains resolved via name based virtual hosting, and one of those needs to be redirected (or forwarded) to another server on the LAN.
Any ideas on how to do this? i tryed searching the web, but i dont know under which keywords, so i always end on single server virtual hosting help sites.
thanks in advance!you need to define a virtual server for it..but inside that definition.. define a proxy.
Then the middle webserver, will actually handle the request to the intranet server, on behalf of the internet client..and then pass the traffic to the internet client.
this looks like a reasonable example..
http://www.linuxfocus.org/English/March … le147.html
namely, the section "Mapping Virtual Servers" -
What does virtual host and port mean in a system in ESB console
Hi !
When you click on a system in ESB console you can see and change 'cluster name' , 'Virtual host' and 'Port' .
What does this mean ?
As default the port is 8888 even though the installation uses port 80.
If I change the port, I see no difference.
Could someone please explain ?It is used to generate the endpoint urls in the wsdl's for the services you have deployed. It needs to be set to the esb server and port number where the services are installed. So if your esb installation uses port 80 you need to change 8888 to 80. Try the wsdl and look at the url of the endpoint.
Kind Regards,
Andre -
VIrtual host and reverse proxy FOR EBIZ R12.0.6
we have 4 dev EBIZ instances on a single hp_ux itanium server on which I have to setup one instance for virtual hosting and to work behind a reverse proxy .
any particular documents or steps for this.
Thanks
mnwe have 4 dev EBIZ instances on a single hp_ux itanium server on which I have to setup one instance for virtual hosting and to work behind a reverse proxy .
any particular documents or steps for this.Implementing Virtual Host, Concurrent Managers and EM DBconsole on Oracle Applications R12 [ID 603883.1]
Conc-System Node Name Not Registered After Fresh Install Using Virtual Name [ID 948644.1]
Is Auto Failover With Virtual Hostnames For Concurrent Processing Servers Supported In 11i Or R12? [ID 456540.1]
Case History: Implementing a Reverse Proxy Alone in a DMZ Configuration - R12 [ID 726953.1]
Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1]
Thanks,
Hussein -
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,
MarkAnyone 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 -
Web App and Virtual Host and Clustering
Hi,
How are you doing?
What is the best way to deploy a web application using a virtual host on a clustered
environment?
Here is what we are doing:
o Deploy the web application on the virtual host
o Deploy the virtual host on the cluster
o Make the web appliation, the default application on the virtual host
This seems to work, but I have additional questions?
In the above deployment, looking at the deploy tab for the web application shows
that the application is deployed to both the cluster as well as the virtual host.
Even though we didn't explicitly deploy to the cluster! What happens if we deploy
explicity (i.e., target) the web application to the cluster?
What other approaches / configurations are you guys using?
Thank you so much,
-Bart Simpson
Never mind, I think I have a solution. Even though e-docs say that DefaultWebApp attribute at virtual host level was deprecated as of WL 8.1 (inline with Servlet 2.3 specification) one can directly edit config.xml file and add the attribute.
For instance, here is an example to set webapp APP1 as a default webapp for virtual host vhAPP1:
<VirtualHost
Name="vhAPP1"
DefaultWebApp="APP1"
... /> -
Which J2EE servers and shared virtual hosting
We currently host our clients websites on an IIS server., using sharded virtual hosting
I am looking to transfer these clients to a new dedicated server option made available by our hosting supplier. I would like to transfer those sites to a J2EE server that would then run on the new dedicated server.
My question is, which server to use? I have most expereince with the Sun App Server 8.1 - would the platform edition suffice for this task? i.e. for hosting multiple domains on a single hardware server?
Is it possible to setup virtual domains for use on the Sun platform edition server? I couldnt find any doc for this kind of thing anywhere.
Ive trawled google and yahoo and cant seem to find the answers I'm loking for.
Many thanks.
C.Can I ask what kind of applications you're using
Tomcat for? The sites I have are all shopping cart
based, product catalogue etc - nothing too extreme.
If it were you would you just use servlets for the DB
accesses?I also have shopping cart and catalog applications. I'm using Hibernate for my database access. The servlets call into Hibernate to read and write to the DB.
I had read somewhere that using Entity EJBs resulted
in many more DB hits that were really neccessary, so
maybe I should just stick to JSPs and servlets.I feel that EJBs have a place but that for smaller sites it can be a bit of overkill. If you're running an amazon.com and you have a cluster of 20 machines upfront with some mongo database in the back then EJBs would be essential. But if you have an installation like I do with a single server talking to a single database and managed by a single person then I feel that the added complexity is more than it is worth.
For the begginer, J2EE can be a bit of a minefield!Yeah - there is alot to it. And, as we're talking about, the API's are just the first step. -
How to configure virtual hosts and separate tiers
The configuration we require with WLS must:
1) provide virtual hosts that can operate under their own SSL environments (some one way, some two way, with different certs)
2) perform all XML parsing of received message objects in the web layer in order to (a) offload CPU from ejb layer to web layer and (b) prevent any malformed message from penetrating to the ejb layer - reject in the web layer
3) the web tier must be physically separate from the ejb tier - an integrated WLS server is not acceptable for security reasons
4) the ejb layer must be clusterable
5) DNS round robin is sufficient protection for web layer failover
I do not see clearly how to accomplish this configuration using the WLS suite. Would appreciate guidance on this prior to plunking down big dollars for licenses.
ThanksThe configuration we require with WLS must:
1) provide virtual hosts that can operate under their own SSL environments (some one way, some two way, with different certs)
2) perform all XML parsing of received message objects in the web layer in order to (a) offload CPU from ejb layer to web layer and (b) prevent any malformed message from penetrating to the ejb layer - reject in the web layer
3) the web tier must be physically separate from the ejb tier - an integrated WLS server is not acceptable for security reasons
4) the ejb layer must be clusterable
5) DNS round robin is sufficient protection for web layer failover
I do not see clearly how to accomplish this configuration using the WLS suite. Would appreciate guidance on this prior to plunking down big dollars for licenses.
Thanks -
Virtual Hosts and Mod_JK
I setup two sites: madplanet.com and j-community.org. Both on all addresses and on port 80. The two domain names resolve to an external IP address. I configured Mod_JK correctly in the httpd.conf file.
Now I configured two workers in workers.properties each pointing to a different JBoss/Tomcat server. I added them to the workers list and finally added them manually to the appropriate XXXXany_90<domain name>.conf file in the sites directory which looks like this:
<VirtualHost *:80>
ServerName madplanet.com
ServerAdmin [email protected]
DocumentRoot "/Library/WebServer/Documents"
DirectoryIndex "index.html" "index.php"
CustomLog "/var/log/apache2/access_log" "%h %l %u %t \"%r\" %>s %b"
ErrorLog "/var/log/apache2/error_log"
ErrorDocument 404 /error/HTTPNOTFOUND.html.var
<IfModule mod_ssl.c>
SSLEngine Off
SSLCertificateFile "/etc/certificates/192.168.0.2.crt"
SSLCertificateKeyFile "/etc/certificates/192.168.0.2.key"
SSLCipherSuite "ALL:!ADH:RC4RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP:eNULL"
</IfModule>
<IfModule mod_dav.c>
DAVLockDB "/var/run/davlocks/.davlockany80default"
DAVMinTimeout 600
</IfModule>
<IfModule modmemcache.c>
CacheEnable mem /
MCacheSize 4096
</IfModule>
<Directory "/Library/WebServer/Documents">
Options All -Includes -ExecCGI +MultiViews -Indexes
AllowOverride None
<IfModule mod_dav.c>
DAV Off
</IfModule>
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
<IfModule modproxybalancer.c>
<Proxy "balancer://balancer-group">
</Proxy>
</IfModule>
<IfModule mod_alias.c>
Alias "/collaboration" "/usr/share/collaboration"
Alias "/icons/" "/usr/share/httpd/icons/"
Alias "/error/" "/usr/share/httpd/error/"
Alias "/examples" "/Library/Tomcat/webapps/examples"
Alias "/macserver" "/Library/WebServer/Documents"
</IfModule>
<IfModule mod_jk.c>
JKMount / JBoss1
JKMount /* JBoss1
</IfModule>
Include /etc/apache2/httpd_users.conf
Include /etc/apache2/httpd_groups.conf
Include /etc/apache2/httpdteamsrequired.conf
LogLevel debug
ServerAlias *
</VirtualHost>
Still after the web service is started both domains delivery the same content (the one from madplanet.com) meaning that 'http://madplanet.com' and 'http://j-community.org' delivery the same web site. Using the web site port from Tomcat the j-community website comes up fine.
Any pointers?
Thanks - AndyYour fatal flaw is the line:
ServerAlias *
This tells Apache that this virtual host matches all hostnames, so it doesn't matter what site the user tried to access, they will always get the output of this virtual host.
Remove this line and you should be fine. -
Setting up multiple web sites (virtual hosting).
Dear members:
I am considering OS X Server for a personal project and would like some advice to help me decided what route to take.
My computer will soon be turned into a server hosting my web sites and some other services at my home office. I am thinking about OS X Server as I have done some research and found OS X to require quite a bit of work so that it can do virtual hosting.
How simple is it to configure virtual hosting in OS X Server ? I am considering the latest Leopard version in case it matters. I am not experienced and wish to employ an application that will simplify this process.
Any help will be very appreciated.
Thank you,
Joseph ChamberlainYou could create local PAC file <http://findproxyforurl.com/pac_file_examples.html> where you can return multiple PROXY servers. You would create text file with your PAC script in it. Then specify System Preferences -> Network -> Advanced -> Proxy -> Automatic Proxy Configuration, and click "Choose File".
If you choose to take BDAqua's advice and create multiple Network Locations, you can then use either
/usr/sbin/networksetup -switchtolocation "MyCompanysProxy1"
/usr/sbin/networksetup -switchtolocation "MyCompanysProxy2"
/usr/sbin/networksetup -switchtolocation "MyCompanysProxy3"
or
/usr/sbin/scselect "MyCompanysProxy1"
/usr/sbin/scselect "MyCompanysProxy2"
/usr/sbin/scselect "MyCompanysProxy3"
you can put them into a script of your choosing. Shell script, or Automator Run Shell Scirpt, or Applescirpt do shell script (or Perl, Python, Ruby, etc...) -
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.
>
> -
Deploying applications to virtual hosts and root contexts on OC4J
Hi
Does anyone out there know how to use hostnames other than the default to talk to an OC4J application (live virtual hosts in Apache). I have a server called web.mydomain.com but for a particular website I want to access it as shop.otherdomain.com - the same machine just 2 different DNS entries. I want OC4J to accept requests for both these machines and display a different site depending on which is accessed. This functionality is provided in Tomcat by the <host> construct - but how do you do it in OC4J?
A secondary question related to this is how to deploy an application to the root context of one of these virtual hosts? The Enterprise Manager interface won't let you map anything to the '/' URL.
I have read a lot of documentation and found little of relevance (fairly typical). I hope this is just a simple option I have overlooked.
Thanks,
Anthony.Sorry... Forgot to mention:
I have read the post about using URL rewriting but this seems like a bit of a fudge. I was wondering if there was a way to do this from the OC4J setup. Preferably through the Enterprise Manager?
Anthony. -
Can someone please explain how to configure mod_oc4j and virtual hosts. It can be done with mod_jk, but I am have major problems in getting it to work with mod_oc4j.
I am not sure about mod_jk so I won't touch that.
mod_oc4j introduces directives that have the scope of either default server or virtual host - just like most OHS (Apache) directives. By default, these directives are in a file mod_oc4j.conf, and this file is included at the highest level.
If you do want those mount points defined in mod_oc4j.conf to be available only to a certain virtual host etc., you can either create a mod_oc4j_vh1.conf file and have it included within the scope of the vh1 virtual host. Or, you can just define those directives right within the vh1 virtual host directive. -
Virtual Hosts and mod_oc4j. How is it done?
Can someone please explain how to configure mod_oc4j and virtual hosts. It can be done with mod_jk, but I am have major problems in getting it to work with mod_oc4j.
yes, I am also very interested in this thing. i could not find anything about that in the documentation.
greetings from munich, .thomas
Maybe you are looking for
-
Adding a new fields in CRMD_ORDER
Hi Experts As per the customer requirement I want to add some new fields in crmd_order. The customer want to record the time limit of the change request. So it's possible to add the new fields in the CRMD_order. If it's possible can you please tell m
-
Hi All, Can any one give me sample coding for my requairment. my requairment as follows: E1EDK01 SEGMENT Constant 1 E1EDK02 SEGMENT Constant 1 E1EDK02 BELNR Idoc document number File PO Number E1EDP0
-
hello, How can I add user-defined functions in VC? thank you
-
Can I partition a LUN into 2 and create 2 diskgroups
Hi everyone. I have a LUN that I want to share the space across 2 ASM diskgroups. The LUN is from an EMC SNA and presented using multipathing, and appears as device emcpowera Normally, I would create a single diskgroup per LUN, but in this case, is t
-
The add option in ipad calendar is not selecting( dimmed out).
What should I do to add an event