Re: Web directory structure and redirects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your help - its working now.



On 2/5/07, Boyle Owen <Owen.Boyle@xxxxxxx> wrote:
> -----Original Message-----
> From: Nick Black [mailto:nickblack1@xxxxxxxxx]
> Sent: Monday, February 05, 2007 9:58 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject:  Web directory structure and redirects
>
> Hello,
>
> I've got this sort of thing to work before, but I just cant make it
> happed this time round. I have:
>
> /var/www/foo.com/spler/index.html
> /varwww/foo.com/blah/images
>
> DocumentRoot /var/www/foo.com/spler
>
> So when a web browser is pointed at foo.com - the spler/index.html is
> displayed.  But because DocumentRoot is /var/www/foo.com/spler , its
> isnt possible to acces files in blah/images.
>
> I'd like users to access blah/images, through a url:
>
> http://www.foo.com/blah/images
>
> But I also want
>
> http://www.foo.com
>
> To display the index.html contained in spler/ .  So I should
> be able to use:
>
> Alias images/ var/www/foo.com/blah/images/
>
> But I cant - the redirect just doesnt seem to happen. The access log
> and error logs show nothing.

What exactly *does* happen? Do you get a broken image? What is the
*exact* URL of the image link?

Your Alias line is basically correct and should "work". However, there
are a number of typos in your post so I'm not sure if what we are seeing
is the literal content of your config or just your hurriedly re-typed
rendition of it. To be specific, try:

        Alias /images /var/www/foo.com/blah/images

Which is closer to that recommended by the docs...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.



>
> Do I need to change the directory sturcture, or can I use some
> redirects to achieve my goals?
>
> Thanks in advance,
>
>
> --
> Nick Black
> --------------------------------
> http://www.blacksworld.net
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>


This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Nick Black
--------------------------------
http://www.blacksworld.net

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux