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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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! |
|
|||
|
"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 |
|
|||
|
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 |
|
|||
|
"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 |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
=?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 =---- |
|
|||
|
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 |