httpd.conf

403 forbidden You don't have permission to access / on this server. after deploying Laravel project

谁都会走 提交于 2019-12-11 11:59:12
问题 There is something weird with my apache server on an EC2 instance on AWS. Well I have developed the website on my local computer using Laravel Framework, then I deployed the website using my Favorite IDE ( PHP storm ) through SSH. everything was fine at the beginning, but then I started getting " You don't have permission to access / on this server.403 Forbidden " everytime I update the project. I noticed when I do this command " sudo chmod 777 /var/www/html/public ", the website works again,

httpd.conf code not working correctly — suggestions?

给你一囗甜甜゛ 提交于 2019-12-11 08:40:09
问题 Related to my previous question: .htaccess check for cookie first, then valid-user Hi guys, I really would appreciate some help from the experts here. My httpd.conf should require a user login using mod_auth_mysql OR a cookie - but now it's only checking for a user login. The code from the previous question is now located in my httpd.conf. What's Working: Currently, all /var/www/downloads and subdirectories for users (/var/www/downloads/~username~) require a username and password using mod

Apache-Error: [file “apache2_util.c”] [line 271] [level 3] [client %s] ModSecurity: %s%s [uri “%s”]%s

爷,独闯天下 提交于 2019-12-11 05:09:21
问题 I just integrated Apache Httpd 2.4.25 with mod_security 2.9.1. And now i got this error messages: /* --ba380000-H-- Message: Error reading request body: Partial results are valid but processing is incomplete Apache-Error: [file "apache2_util.c"] [line 271] [level 3] [client %s] ModSecurity: %s%s [uri "%s"]%s Apache-Handler: jakarta-servlet Stopwatch: 1489655290393010 8470749 (- - -) Stopwatch2: 1489655290393010 8470749; combined=0, p1=0, p2=0, p3=0, p4=0, p5=0, sr=0, sw=0, l=0, gc=0 Response

How to route a particular URL to both http and https and others to https in Apache httpd

依然范特西╮ 提交于 2019-12-11 03:44:06
问题 I have a requirement to route a particular url, /gapp via http and https and other urls like /aapp, /bapp, /capp and the rest via https . I have succeded in routing everything to https but can't route /gapp to http. Below is my configuration: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} =on RewriteRule ^(gapp)$ http://%{SERVER_NAME}%{REQUEST_URI} [L,R] </IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_METHOD} ^TRACE RewriteRule .* - [F] </IfModule>

Apache error: Address already in use: make_sock: could not bind to address [::]:443

懵懂的女人 提交于 2019-12-11 00:06:34
问题 Apache error while starting: Address already in use: make_sock: could not bind to address [::]:443 *Executing start method ("/lib/svc/method/http-apache2 start") ] (125)Address already in use: make_sock: could not bind to address [::]:443 no listening sockets available, shutting down Unable to open logs* Listen 443 is added in ssl.conf. Listen 80 is added in httpd.conf. HTTPD.conf file: DocumentRoot "/var/apache2/htdocs" <Directory /> Options FollowSymLinks AllowOverride All </Directory>

How to Redirect Apache Logs to both STDOUT and Apache Log File

。_饼干妹妹 提交于 2019-12-10 22:19:31
问题 I am running a docker container and want to write logs of my apache server to both STDOUT and file. Any idea as to what kind of configuration is needed in my Apache httpd.conf file? Any help would be highly appreciated! 回答1: you can try this: CustomLog "| /usr/bin/tee /var/log/access_log" common from apache.org docs: Apache httpd is capable of writing error and access log files through a pipe to another process, rather than directly to a file. This capability dramatically increases the

.htaccess or httpd.conf

一个人想着一个人 提交于 2019-12-10 17:17:05
问题 I need to do a url-rewriting job now. I don't know whether I should put the code into a .htaccess or httpd.conf? EDIT What's the effecting range of .htaccess?Will it affect all requests or only requests to the specific directory it's located? 回答1: If you wont have to change your rules very often, you should put them in the httpd.conf and turn off overriding in the top directory your rules apply to AllowOverride None With no overriding, your apache will not scan every directory for .htaccess

Setting up Subversion repo using LDAP groups in svn_access_file

烈酒焚心 提交于 2019-12-10 16:55:48
问题 If I was doing this from scratch, I would have made this two separate repositories. Unfortunately, I have to make do with what is there. Our repository looks like this: /trunk /tags /branches /secret/trunk /secret/tags /secret/branches I have my SVN configuration setup like this: <Location /gorp> DAV svn SVNPath /mnt/svn/repositories/gorp AuthType basic AuthName "Vegicorp Repostitory" AuthBasicProvider ldap AuthzLDAPAuthoritative off AuthLDAPUrl "ldap://ldap.vegicorp.net:389/DC=vegicorp,DC

Setting up mod_proxy_html on CentOS 7

给你一囗甜甜゛ 提交于 2019-12-10 11:25:19
问题 I'm trying to do some testing on my web server to make sure reverse proxy is working as expected before putting it on a live environment, but I am running into some problems with mod_proxy and mod_proxy_html. I have 2 virtual hosts, 1 on port 80 and 1 on port 8080. My goal is to have incoming requests for www.example.com/path/ to come in on port 80, and get reverse proxied to port 8080. Here are my virtual host settings: <VirtualHost *:8080> ServerName www.example.com:8080 DocumentRoot /var

how do I change the location of the httpd.conf for Apache on windows?

做~自己de王妃 提交于 2019-12-10 11:02:02
问题 I am working on setting up a load balancing cluster on windows server 2012 and have a shared drive where I want the configuration files for Apache to exist at. This way each member of the LB can load the exact same config files. How do I change where the config file is located independently of where the ServerRoot is? 回答1: Start the Apache process with the -d parameter and give your alternative ServerRoot as an argument, though I'd imagine it would be a much better idea for you to use some