logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache lookup for files in document root failing
Author
srinureddy.etta@gmail.com



Joined: 05 Nov 2014
Posts: 12

PostPosted: Fri 31 Jul '15 11:14    Post subject: Apache lookup for files in document root failing Reply with quote

Hi ,
I have document root mentioned in the httpd file but my url(http://mydomain.com/pl/BConline/en/img/arrow_down_black.gif) has specific directory structure(/pl) which is not there in my document root due to this browser is failing to load static text.

Code:
DocumentRoot  "D:/ac-be-pax/ac1107_be/domains/AirCanada/web"   
   <Directory     D:/ac-be-pax/ac1107_be/domains/AirCanada/web>
      Order Deny,Allow
      Allow from all
   </Directory>


url:http://mydomain.com/pl/BConline/en/img/arrow_down_black.gif

please let me know how to tell apache to ignore /pl in root and pick or can we manipulate url .


Thanks
Srinivasula Reddy
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Fri 31 Jul '15 11:48    Post subject: Re: Apache lookup for files in document root failing Reply with quote

Hi Srinivasula,


srinureddy.etta@gmail.com wrote:
which is not there in my document root due to this browser is failing to load static text


Where is it then if not in the document root?
Back to top
srinureddy.etta@gmail.com



Joined: 05 Nov 2014
Posts: 12

PostPosted: Fri 31 Jul '15 13:38    Post subject: Reply with quote

It is in the url.
from BConline/en/img/.. directory structure is in document root(pl is missing in document root)
in url pl/BConline/en/img/ (/pl extra is there due to that it is not loading)
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Mon 03 Aug '15 16:40    Post subject: Reply with quote

Did you ever work with mode rewrite? Because you have to redirect those stuf to the correct url.
Back to top
srinureddy.etta@gmail.com



Joined: 05 Nov 2014
Posts: 12

PostPosted: Wed 05 Aug '15 5:10    Post subject: Reply with quote

no, i never worked with rewrite.share some into on that
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Wed 05 Aug '15 18:06    Post subject: Reply with quote

There must be some rewriting allready since the pl doesn't exist apache must redirect the request.

Please look in your config files for RewriteRule
Back to top


Reply to topic   Topic: Apache lookup for files in document root failing View previous topic :: View next topic
Post new topic   Forum Index -> Apache