Server :: Apache On Debian - 403 On All Subdirectories?
Feb 11, 2010
I set up a Debian box with Apache and everything works fine, but when trying to access files in a subdirectory, I get a 403 error. The error log shows the following:
Code:
(13)Permission denied: /var/www/site/images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
I tried adding a <Directory> entry in the conf file for the site and even tried adding (with +r for all) an .htaccess file (.htaccess is not specified in the conf file and the root directory doesn't have one either), but nothing works.
[Code]...
View 1 Replies
ADVERTISEMENT
Jun 13, 2011
I'm trying to setup an Apache server on my computer which will allow browsing of files in a specific directory and subdirectories, without needing any sort of authentication.
I've got the Apache2 server up and running through yast, and everything works fine as long as I try to point it to the /www/htdocs folder. However, I want to point it at another folder, which is on another partition. This partition is formatted as NTFS, if that matters at all (here's some background on some permissions issues I had with the NTFS partitions recently).
When I change the "Directory" setting in the Yast http server configuration utility to the directory on the NTFS partition I wish to use, attempting to access the server results in the following error:
Code: Access Forbidden: You don't have permission to access the requested directory. There is either no index document or the directory is read-protected. If you think this is a server error, please contact the webmaster.
Error 403
192.168.1.100
Mon Jun 13 23:43:29 2011
Apache/2.2.17 (Linux/SUSE)
View 4 Replies
View Related
Jan 5, 2011
I am trying to set up my local development environment to mimic the behaviour of my webhost: namely executing *.cgi files as CGI scripts, regardless of their location. If I'm not mistaken, the default setup of Apache on Ubuntu has this set up for /usr/lib/cgi-bin only.
I have tried adding +ExecCGI to the /var/www directory settings in /etc/apache2/sites-enabled/000-default. I have also tried AddHandler cgi-script .cgi in the same <directory> block.
View 3 Replies
View Related
Nov 18, 2010
This question is very similar to this one except that I want to maintain the file's original subdirectories.
For example if I had
/temp/a/a.txt
/temp/a/a.jpg
/temp/a/b.txt
/temp/b/c.txt
/temp/d/d.txt
/temp/d/d.jpg
/temp/d/e.txt
/temp/f.txt
[Code]...
View 2 Replies
View Related
Jun 19, 2011
I wonder how i can get subdirectories (.INBOX/***/*** etc...) in dovecot.I just stardet a mail server and when i tried to create it from the mail client (MS Outlook) it says that the server wont allow it.
View 4 Replies
View Related
Jan 12, 2011
I am going to use 'rsnapshot' to create backups of my local & remote computers. My intension is that I can use these backups to restore disk images when needed -> install Linux from scratch and then copy the subdirectories from 'rsnapshot' backup to the new Linux installation.My question is what subdirectories should be excluded in the backup.
View 6 Replies
View Related
Oct 14, 2010
I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.
first, system info:
monitored server:
CentOS 5.3 2.6.18-128.1.1.el5
[code]....
View 7 Replies
View Related
Jan 24, 2010
Theres this php script which is to be run every 10 minutes :- php -q /var/www/extra/cron/cron.php
View 3 Replies
View Related
Jul 20, 2010
This should be a quick one. I'm trying to backup a single directory and it's subdirectories on my Lucid Server to a freenas box across my network. This is what I'm using to do that..
rsync -r -a -v -z * --delete freenas:dSIBackups It almost works perfectly except for one problem. When a file is deleted at the source, this command doesn't seem to delete it on the receiving end. I assumed that the --delete would do that but aparently not. Can anyone think of a reason that this would happen?
View 3 Replies
View Related
Sep 30, 2015
I installed debian 7 and apache 2.2 with virtualhosts. I'd like to run CGI, but always get internal server error. i tested it with a simple test.cgi file.I got this in apache error log.Wed Sep 30 21:39:02 2015] [error] [client 192.168.0.156] Premature end of script headers: test.cgi
When is switch off "Addhandler cgi-script .cgi" in the config file i see the code. Permissions are 755 on the whole directory. I have checked a2enmod, the modul is loaded (sudo a2enmod cgi)..here are the part of config files :
ScriptAlias /gestioip "/var/www/gestioip"
<Directory "/var/www/gestioip">
AddHandler cgi-script .cgi
AddDefaultCharset utf8
[code]...
View 0 Replies
View Related
Jul 12, 2010
any plans to include (or not include) Apache Traffic Server in Squeeze?
View 1 Replies
View Related
Sep 30, 2010
i have several sites hosted on one machine (Apache 2.2 on Debian). They are configured at /etc/apache2/sites-available/ with this configuration (part of it):
RewriteMap lowercase int:tolower
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
RewriteRule ^(([^./]+.)?site1.com)/(.*) /www/site1.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site2.com)/(.*) /www/site2.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site3.com)/(.*) /www/site3.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site4.com)/(.*) /www/site4.com/www/root/$3 [L]
[Code]...
View 1 Replies
View Related
Mar 25, 2011
I am trying to show library content (asp files, IIS server, MySQL database on Windows Server 2003 - Inetpub/wwwroot/library - 192.168.0.3) publicly. But Apache webserver is on Linux machine. In one of previos topics I was adviced to mount this remote machine webfolder into Linux /var/www. Well this way it want work. I was adviced it can be done through redirecting.
View 14 Replies
View Related
Mar 15, 2011
I have server with Debian and Apache installed. Webpage content located in /var/www folder. For failserver I have Windows server 2003, which runs Mysql service thats needed for library software. And on this machine theres Inetpub/wwwroot with library webcontent. Sofar its only accessible localy. How can make Apche webserver to take content from this local server machine and show it publicly.
View 14 Replies
View Related
Jan 29, 2011
My Apache web server (respectively a child process) is crashing several times a day. I wanted to find the exact reason and activated the core dumps but even though the crashing-issues continue, the core dumps were never created. I have found several howto's which basically point to the same steps:
- set "ulimit -c unlimited"
- add "CoreDumpDirectory" directive into apache2.conf (Debian's httpd.conf)
Another info I've found is that /proc/sys/fs/suid_dumpable shouldn't be 0 - so on one howto it said to echo 2 into it, on another one to echo 1 to /proc/sys/fs/suid_dumpable - didn't work with neither of them.
View 4 Replies
View Related
Oct 30, 2015
How to best manage both http and https pages on the same apache-server without conflicts. For example, if i have both 000-default.conf and 000-default-ssl.conf pointing to mydomain.com, and don't want users who visit mydomain.com without specifically type the https-prefix to be redirected to the https-page - how to handle users using browserplugins such as https-everywhere etc?
Another option would be to create a subdomain ssl.mudomain.com and have users who want to reach the ssl site to have to type ssl. I have tested several things with https everywhere enabled in my own browser, and it seems really hard to make this working the way i want, in one way or another i always end up getting redirected to the ssl-site automatically.
The reason i need this to work is because i run one site that i don't care much about SSL, that is the "official" part of that site, and i also host some things for friends and family on the SSL-part. This would not have been a problem if it wasn't that i use self-signed certificates for my ssl-site and the major user become afraid when a certificate-warning pops up in their browser and therefor leave the site.
View 2 Replies
View Related
Apr 11, 2011
I have been tearing my hair out with this. As part of a backend perl script i am holding the Epoch time as session data using apache session and mysql so i can delete sessions after an expiry period. When I retrieve the time it is about three months old even when i only just set it. The code example below best describes the problem:
View 5 Replies
View Related
Feb 4, 2010
Any one have an idea How to clear apache cache without restarting apache server.
View 5 Replies
View Related
Jul 29, 2010
I want to restrict the access to my local web server by IP address. Im in a LAN (192.168.200.xx) so i have this:
[code]....
But when i try to connect from 192.168.200.4 it says i don't have permission to access
View 1 Replies
View Related
Jan 24, 2010
I am upgrading my server and I have a lot of sites. Since I cannot take my server down for a few days, maybe a week until I manage to migrate all the sites to the new machine, I figured I could migrate them one by one. After migrating one, I would somehow tunnel the requests of that name virtual host to my internal machine. When everything is migrated, I would then switch the machines, update ip's and stuff and everything will work just fine.
However I cannot seem to find a way to do this tunneling. is this at all possible? If not, what alternatives do I have?
View 5 Replies
View Related
Jan 20, 2011
I am installing Big Brother on a CentOS 5.2 running the default Apache 2.2.3. When I try to access any web page I get the following error: Forbidden You don't have permission to access /bb/ on this server. Apache/2.2.3 (CentOS) Server at fmsubbnix Port 80 So far I have:
1) Set the Directory options to FollowSymLinks
2) Verified all directory and file permissions are at 755
3) Set permissions temporarily to 777 and received same error so I am assuming the issue is in a config file somewhere
4) in hhtpd.conf verified <Files ~ "^.ht"> is correct
5) verified the "default" directory is correct (/var/www/html)
I have read and tried several ideas in posts listed on the web but to no avail and am at a loss as to what to look for next..
View 3 Replies
View Related
Apr 21, 2011
I'm running a linux cloud server with the following config
1.2ghz Processor allocation
752MB Ram
The site loads slow and clicking a link almost freezes the page for a second. Also, the page loads could be much faster. We've been running mysqltuner and have pretty much optimized all slow queries. Is there anything we can do to fine tune the server for faster and more responsive?
Httpd.conf
Timeout 20
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
<IfModule prefork.c>
code....
View 2 Replies
View Related
May 22, 2011
Does anyone have some material about statistics using ubuntu / linux server, or a text which generally describes the ubuntu server?I need urgent, i'm writing specialization work about administration apache and ftp server on ubuntu 10:10 server, so I need something for the conclusion.
View 7 Replies
View Related
Feb 2, 2011
I try to config my apache server to list all my files: c/c++, php, java files, like the txt file on my server,
e.g /var/www/mydomain/pub
i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name,
if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file,
Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?
View 1 Replies
View Related
Feb 23, 2011
config my apache server to list all my files: c/c++, php, java files, like the txt file on my server, e.g /var/www/mydomain/pub i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name, if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file, Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?
View 1 Replies
View Related
Dec 7, 2010
I and setting up a home web server using Ubuntu 10.04 server (local only). I am currently using Webmin 1.53 to access it remotely all is going great very easy to use. Webmin - Check, ftps-fileZilla - Check, Apache -It Works BUT I cant seam to set up Apache as a named server using Bind DSN. Tried most of the help in the fourms and ..... I think my problems is in the master server selection, do i have to use [URL]... or can i just use myservername. I have tryed both with no luck. First time with the server addition.
[code]...
View 6 Replies
View Related
Mar 21, 2011
I have install Mandriva 2009 and install apache server but its not strating on default configuration file . What I should do for starting apache . i have tried /etc/init.d/httpd start but apache is not running .
View 1 Replies
View Related
Aug 19, 2009
I installed Apache server with Debian 5.0.2 Lenny. I am trying to write a script which would analysis web log files. I found the log files on /var/log/apache2. There is an access log file, `access.log`. My question is what configuration file determines the location and the name of the access log file. How can I change them? I used CustomLog in /etc/apache2/apache2.conf like below.LogFormat ": %h %l %u %t "%r" %>s %b" common
CustomLog /home/test/my_log_file common Apache2 generated /home/test/my_log_file. But no logs were written in the file even after I run `/etc/init.d/apache2 restart`. Ichanged the log file location. It still didn't work. However, Apache2 still wrote logs in the file `/var/log/apache2/access.log`
View 1 Replies
View Related
Jul 2, 2010
Can anyone tell me in performance tunning of apache-tomcat and jboss application server?when I deploy some application in apache-tomcat the performance is say 100 users per second and incase of jboss it is even worst (35-40 users per second)i want to improve my performance 1000 uesrs per second..
View 1 Replies
View Related
Feb 10, 2010
I have a requirement of using a wildcard certificate for 5 subdomains running under apache httpd server and 1 subdomain under tomcat.Is there any possibility of using the single wildcard certificate both in tomcat and apache
View 3 Replies
View Related