![]() |
howto add these apache directives?
I need one folder i.e. /var/www/web1/web/folder/ to have these directives applied to:
Quote:
can you give me some hints? maybe some parts of the directives are unnecesary? I am using a perfect debian 3.1 install with latest ispconfig. |
I ran into something like this yesterday, hopefully this fix works for you as well...
In IPSConfig, In the root of your intended site, at the bottom look for the ' Apache Directives (Optional)' box. Input the following. Code:
<Directory '/var/www/web2/web/gallery'> |
I was not sure if I could input all that stuff above into the directives fields...
SO if I got you right, by inputting what you said in the directives field, I could then use this .htaccess I pasted above? |
from what I understand, yes.
and if it doesn't work... just delete the .htaccess and the apache directives and try something else. |
I was just concerned about security, as this is a file uploading / sharing application, so I really wanted to use those directives inside a .htaccess file to turn php off for the uplaod folders...
btw. the rewrite stuff works inside the .htaccess its just these: Quote:
I'll try your advice tomorrow, going to bed now. |
somethign is wrong around here, do I have to cut away the ' ' around the path of the directory? I tried cutting them away, ispc saves my directive without error but when I go to test the site I am talking about, I get an 500 server error without modifying my .htassess file !? very strange, here is how my .htaccess looks like:
Quote:
|
Please have a look at the apache error log of the website to get a detailed error message for you 500 error.
|
3 Attachment(s)
ok, I enabled this line: Options -Indexes in the .htaccess and get 500 error
Quote:
ok, I just skipped these problems and uploaded an image, which went fine but when trying to view the uploaded image I get an error 500 too, but in the logfile it says error 404 ??? Quote:
Quote:
Ok if someone wants to test, here is the link to the site: http://filehosting.zice.ro and I will attach the .htaccess files here for reviewing. Currently I have only this directive inside my apache directive field in ispc: Quote:
The bigger thing is handling all subdomains via wildcard domain, only filehosting is excluded and it seemed to work fine, but where do you think these 500 errors come from? why would there be a www.zice.ro not filehosting.zice.ro involved in the logfiles? ###edit### the main htaccess file is inside the root of this subdomain, the public one is inside the folder with public uploaded files and the userfiles one is inside the folder containing users files ###edit-again### commented these: Quote:
|
Is filehosting.zice.ro a Co-Domain of the www.zice.ro web site, or is it a web site of its own?
|
it is a subdomain which gets redirected via .htaccess to its own folder
Quote:
|
| All times are GMT +2. The time now is 10:25. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.