Apache & directory

by tiouss, Monday, March 25, 2013, 13:57 (4084 days ago)

Hello there, first of all, congratulations for your work.
Here is my issue :
I installed selfoss on my server in a vhost handling my domain www.mydomain.com/selfoss and it works like a charm.

My server is using apache userdir_mod because several users are using it to have a website, they use adress http://server_ip/~username
And this way, selfoss is not working, i got a 404 error:
Not Found
HTTP 404 (GET /~username/selfoss/)

Is there something I missed ? I tried to change .htaccess with RewriteBase to the correct path (relative or full) and same issue.

My server is running on debian.

Thanks for your help.

Apache & directory

by gilgongo, Wednesday, March 27, 2013, 22:41 (4081 days ago) @ tiouss

I have a similar issue, but instead I'm using mod_alias to have selfoss in a directory outside my main docroot. I think it's something to do with all the mod_rewrite stuff that's going on in .htaccess

Apache & directory

by windrush, Thursday, March 28, 2013, 01:00 (4081 days ago) @ tiouss

I have the same issue. Yeah, it looks related to mod_rewrite.

Apache & directory

by tiouss, Thursday, March 28, 2013, 22:14 (4080 days ago) @ tiouss

After some investigations,
I found that :

1/ www.mydomain.com/selfoss (where my domain.com is going to /home/user1/www): OK
--
2/ mydomain2.com/~user1/selfoss where mydomain2 is going to server_ip : NOK
3/ my_ip/~user1/selfoss (going to the same path /home/user1/www): NOK

2/ and 3/ are almost the same, and I get :
"The requested URL /home/~user1/www/selfoss/index.php was not found on this server"

I confirm index.php is here with the good permissions (and working in the 1st exemple.)

Apache logs say : "File does not exist: /var/www/home" (which is my %DOCUMENT _ROOT%/home)

It really sounds like a .htaccess issue, .htaccess looking into the wrong directory.
I think it could be an important issue since userdir_mod is used in most schools, universities, cool business places for employees, etc. I'm trying to fix it on my side but I'll probably need others eyes since I'm not very familiar with .htaccess directives.

Apache & directory

by windrush, Friday, March 29, 2013, 00:55 (4080 days ago) @ tiouss

https://issues.apache.org/bugzilla/show_bug.cgi?id=36509

This seems related. However it doesn't really seem to offer a solution as far as I can tell.

RSS Feed of thread
powered by my little forum