I have an Oracle application server(10.1.2) which runs on a Apache web server. We have multiple websites running on the different server instances of the Oracle application server.
We have our virtual hosting as follows.
server is webserver.companyname.com and in virtual hosting I have the following
<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com *.example.com
DocumentRoot "/oracle/app/oracle/product/101202/mid101202/Apache/Apache/htdocs"
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
</Location>
#uptohere
</VirtualHost>
#upto here
<VirtualHost *:80>
ServerName www.example1.com
ServerAlias example1.com *.example1.com
DocumentRoot "/oracle/app/oracle/product/101202/mid101202/Apache/Apache/htdocs2"
#added by reyaz on 19th july 10
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
</Location>
#uptohere
</VirtualHost>
Now everything working smootly, but when I type www.example.com or www.example1.com I get redirected to the actual server path which is http://webserver.companyname.com/example/index.html , http://webserver.companyname.com/example1/index.html.
I don't want this to happen instead we want to configure it in such a way that this would be www.example.com/index.html.
As you all guessed by now I am a newbie in Apache server. Any help is much appreciated.