Problem serving files

This is a discussion on Problem serving files within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I have apache 2 running under Debian Sid, and I'm using the directory /home/username/public_html/ for my ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2007
Adrián Ribao Martínez
 
Posts: n/a
Default Problem serving files

Hello, I have apache 2 running under Debian Sid, and I'm using the
directory /home/username/public_html/ for my tests.
The problem is that only the index.* files are shown, if I want to open
http://localhost/~username/otherfile or
http://localhost/~username/otherdirectory/otherfile I get an error like
this:
Not Found
The requested URL /~username/tmp.xml was not found on this server.

(In this case I was trying to get tmp.xml)

The config for the userdir is:

<IfModule mod_userdir.c>
UserDir public_html
UserDir enabled username
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options All
</Directory>
</IfModule>

How can I solve this?

Thank you!


  #2 (permalink)  
Old 01-17-2007
HansH
 
Posts: n/a
Default Re: Problem serving files

"Adrián Ribao Martínez" <aribao@gmail.com> schreef in bericht
news:eokr81$h9$1@aioe.org...
> Hello, I have apache 2 running under Debian Sid, and I'm using the
> directory /home/username/public_html/ for my tests.
> The problem is that only the index.* files are shown, if I want to open
> http://localhost/~username/otherfile or
> http://localhost/~username/otherdirectory/otherfile I get an error like
> this:
> Not Found
> The requested URL /~username/tmp.xml was not found on this server.
>
> (In this case I was trying to get tmp.xml)

This file is at /home/username/public_html/?
Compare rights and ownership of this one and those index.*.

HansH


  #3 (permalink)  
Old 01-17-2007
Adrián Ribao Martínez
 
Posts: n/a
Default Re: Problem serving files

The rights are exactly the same, I forgot to write it in the post sorry.

HansH wrote:

> "Adrián Ribao Martínez" <aribao@gmail.com> schreef in bericht
> news:eokr81$h9$1@aioe.org...
>> Hello, I have apache 2 running under Debian Sid, and I'm using the
>> directory /home/username/public_html/ for my tests.
>> The problem is that only the index.* files are shown, if I want to open
>> http://localhost/~username/otherfile or
>> http://localhost/~username/otherdirectory/otherfile I get an error like
>> this:
>> Not Found
>> The requested URL /~username/tmp.xml was not found on this server.
>>
>> (In this case I was trying to get tmp.xml)

> This file is at /home/username/public_html/?
> Compare rights and ownership of this one and those index.*.
>
> HansH


  #4 (permalink)  
Old 01-17-2007
HansH
 
Posts: n/a
Default Re: Problem serving files

"Adrián Ribao Martínez" <aribao@gmail.com> schreef in bericht
news:eokuk6$7ss$1@aioe.org...
>>> directory /home/username/public_html/ for my tests.
>>> The problem is that only the index.* files are shown, if I want to open
>>> http://localhost/~username/otherfile or
>>> http://localhost/~username/otherdirectory/otherfile I get an error like
>>> this:
>>> Not Found
>>> The requested URL /~username/tmp.xml was not found on this server.
>>> (In this case I was trying to get tmp.xml)

>> This file is at /home/username/public_html/?
>> Compare rights and ownership of this one and those index.*.
>>

> The rights are exactly the same, I forgot to write it in the post sorry.
>

Answer incomplete ...

HansH


  #5 (permalink)  
Old 01-17-2007
Adrián Ribao Martínez
 
Posts: n/a
Default Re: Problem serving files

HansH wrote:

> "Adrián Ribao Martínez" <aribao@gmail.com> schreef in bericht
> news:eokuk6$7ss$1@aioe.org...
>>>> directory /home/username/public_html/ for my tests.
>>>> The problem is that only the index.* files are shown, if I want to open
>>>> http://localhost/~username/otherfile or
>>>> http://localhost/~username/otherdirectory/otherfile I get an error like
>>>> this:
>>>> Not Found
>>>> The requested URL /~username/tmp.xml was not found on this server.
>>>> (In this case I was trying to get tmp.xml)
>>> This file is at /home/username/public_html/?
>>> Compare rights and ownership of this one and those index.*.
>>>

>> The rights are exactly the same, I forgot to write it in the post sorry.
>>

> Answer incomplete ...
>
> HansH


Rights, ownership and group are exactly the same, I hope this is a complete
answer.
  #6 (permalink)  
Old 01-17-2007
dj.brainstorm@gmail.com
 
Posts: n/a
Default Re: Problem serving files

is your index file "index.xml" ? is xml included in your mime types?



Adrián Ribao Martínez wrote:
> HansH wrote:
>
> > "Adri?n Ribao Mart?nez" <aribao@gmail.com> schreef in bericht
> > news:eokuk6$7ss$1@aioe.org...
> >>>> directory /home/username/public_html/ for my tests.
> >>>> The problem is that only the index.* files are shown, if I want to open
> >>>> http://localhost/~username/otherfile or
> >>>> http://localhost/~username/otherdirectory/otherfile I get an error like
> >>>> this:
> >>>> Not Found
> >>>> The requested URL /~username/tmp.xml was not found on this server.
> >>>> (In this case I was trying to get tmp.xml)
> >>> This file is at /home/username/public_html/?
> >>> Compare rights and ownership of this one and those index.*.
> >>>
> >> The rights are exactly the same, I forgot to write it in the post sorry.
> >>

> > Answer incomplete ...
> >
> > HansH

>
> Rights, ownership and group are exactly the same, I hope this is a complete
> answer.


  #7 (permalink)  
Old 01-18-2007
Adrián Ribao Martínez
 
Posts: n/a
Default Re: Problem serving files

Yes, it is, but that's not the problem, the problem is that if I want to
open a file I can't. I mean, I can't do this:
http://localhost/~username/image.jpg
I can only access to the index files (index.html, index.htm, index.php,
index.py )



dj.brainstorm@gmail.com wrote:

> is your index file "index.xml" ? is xml included in your mime types?
>
>
>
> Adrián Ribao MartÃ*nez wrote:
>> HansH wrote:
>>
>> > "Adri?n Ribao Mart?nez" <aribao@gmail.com> schreef in bericht
>> > news:eokuk6$7ss$1@aioe.org...
>> >>>> directory /home/username/public_html/ for my tests.
>> >>>> The problem is that only the index.* files are shown, if I want to
>> >>>> open http://localhost/~username/otherfile or
>> >>>> http://localhost/~username/otherdirectory/otherfile I get an error
>> >>>> like this:
>> >>>> Not Found
>> >>>> The requested URL /~username/tmp.xml was not found on this server.
>> >>>> (In this case I was trying to get tmp.xml)
>> >>> This file is at /home/username/public_html/?
>> >>> Compare rights and ownership of this one and those index.*.
>> >>>
>> >> The rights are exactly the same, I forgot to write it in the post
>> >> sorry.
>> >>
>> > Answer incomplete ...
>> >
>> > HansH

>>
>> Rights, ownership and group are exactly the same, I hope this is a
>> complete answer.


  #8 (permalink)  
Old 01-18-2007
Mark
 
Posts: n/a
Default Re: Problem serving files

=?UTF-8?B?QWRyacOhbiBSaWJhbyBNYXJ0w61uZXo=?= <aribao@gmail.com> wrote in
news:eonlp9$6pi$1@aioe.org:

> Yes, it is, but that's not the problem, the problem is that if I want

to
> open a file I can't. I mean, I can't do this:
> http://localhost/~username/image.jpg
> I can only access to the index files (index.html, index.htm, index.php,
> index.py )
>
>


I still think looking at your permissions is the key. Does everyone have
read permissions on both the directory and the file?

Is your server config such that user directories are enabled or did you
set DocumentRoot to your user directory?



--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  #9 (permalink)  
Old 01-18-2007
Adrián Ribao Martínez
 
Posts: n/a
Default Re: Problem serving files

Mark wrote:

> =?UTF-8?B?QWRyacOhbiBSaWJhbyBNYXJ0w61uZXo=?= <aribao@gmail.com> wrote in
> news:eonlp9$6pi$1@aioe.org:
>
>> Yes, it is, but that's not the problem, the problem is that if I want

> to
>> open a file I can't. I mean, I can't do this:
>> http://localhost/~username/image.jpg
>> I can only access to the index files (index.html, index.htm, index.php,
>> index.py )
>>
>>

>
> I still think looking at your permissions is the key. Does everyone have
> read permissions on both the directory and the file?
>
> Is your server config such that user directories are enabled or did you
> set DocumentRoot to your user directory?


I have checked the permissions several times, everything is fine.
I have enabled the directory with this
<IfModule mod_userdir.c>
UserDir public_html
UserDir enabled antares
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
#Options MultiViews Indexes SymLinksIfOwnerMatch
IncludesNoExec
Options All
</Directory>
</IfModule>
I didn't modify the document root wich is set to /var/www
I'm running apache under Debian sid

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0