Bad Request Your browser sent a request that this server could not understand
In my case, it’s actually the underscore _ in DocumentRoot that causes problem and hours of debugging. All work fine once I remove it from my DocumentRoot path.
In my case, it’s actually the underscore _ in DocumentRoot that causes problem and hours of debugging. All work fine once I remove it from my DocumentRoot path.
YES, by using node.js. Express or connect for the HTTP file serving and socket.io for the WebSocket stuff. Example: var express = require(“express”); var app = express.createServer(); app.get(“https://stackoverflow.com/”, function(req, res){ res.redirect(“/index.html”); }); app.configure(function(){ app.use(express.static(__dirname + ‘/public’)); }); app.listen(80); var io = require(‘socket.io’); var socket = io.listen(app); socket.on(‘connection’, function(client){ client.on(‘message’, function(){…}); })
You should have a look at the URL Rewriting Guide from the apache documentation. The following is untested, but it should to the trick: RewriteCond %{HTTP_HOST} ^([^.]+)\.blah\.domain\.com$ RewriteRule ^/(.*)$ http://blah.domain.com/%1/$1 [L,R] This only works if the subdomain contains no dots. Otherwise, you’d have to alter the Regexp in RewriteCond to match any character which should … Read more
Just make two <VirtualHost *:80> tags <VirtualHost *:80> ServerAdmin [email protected] ServerName www.node-example.com ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> <Location /> ProxyPass http://localhost:3000/ ProxyPassReverse http://localhost:3000/ </Location> </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] ServerName node-example.com ProxyRequests off <Proxy *> Order deny,allow Allow from all </Proxy> <Location /> ProxyPass http://localhost:80/ ProxyPassReverse http://localhost:80/ </Location> </VirtualHost> It … Read more
allow from all will not work along with Require local. Instead, try Require ip xxx.xxx.xxx.xx For Example: # New XAMPP security concept # <LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”> Require local Require ip 10.0.0.1 ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </LocationMatch>
It’s because you have to put it in <Directory> directive.’ .htaccess is per directory context, so you have to explicitly tell apache where .htaccess is allowed to be used. <VirtualHost *:80> DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Options Includes <Directory “/var/www/html”> AllowOverride All </Directory> </VirtualHost>
1). Open -> /etc/phppgadmin -> config.inc.php 2). change $conf[‘extra_login_security’] = true; to $conf[‘extra_login_security’] = false; // If extra login security is true, then logins via phpPgAdmin with no // password or certain usernames (pgsql, postgres, root, administrator) // will be denied. Only set this false once you have read the FAQ and // understand how … Read more
If you’re using apache 2.4 Order allow,denyAllow from all becomes… Require all granted https://httpd.apache.org/docs/2.4/upgrading.html
Check file permissions. I had exactly the same error on a Linux machine with the wrong permissions set. chmod 755 myfile.pl solved the problem.