httpd.conf

How to set up Apache ProxyPass to preserve Express routes

 ̄綄美尐妖づ 提交于 2019-11-30 13:57:45
In my Apache config im forwarding all traffic on /node to port 3000 , where the Express server is listening. <IfModule mod_proxy.c> ProxyRequests Off ProxyPass /node http://localhost:3000/ </IfModule> The Express app looks like this: var express = require('express'); var app = express(); var router = express.Router(); router.route('/route/:id').get(function (req, res) { res.json({ description: 'Welcome to a route with an ID' }); }); router.route('/route').get(function (req, res) { res.json({ description: 'Welcome to the normal route' }); }); router.route('/').get(function (req, res) { res.json

Apache permission denied

老子叫甜甜 提交于 2019-11-30 11:21:33
I've just installed a new Apache 2.4.2 with Php fast cgi build on windows. Then I modified the httpd.conf adding the following: LoadModule fcgid_module modules/mod_fcgid.so FcgidInitialEnv PHPRC "C:/SITE/PHP" AddHandler fcgid-script .php FcgidWrapper "C:/SITE/PHP/php-cgi.exe" .php DocumentRoot "C:/SITE/localhost/www" <Directory "C:/SITE/localhost/www"> Order allow,deny Allow from all </Directory> However when I try to open my site, it says: Forbidden You don't have permission to access / on this server. Any ideas what might be the problem? Anonymous This was the correct way to do it: (thanks

Options FollowSymLinks or SymLinksIfOwnerMatch is off

老子叫甜甜 提交于 2019-11-30 07:56:45
I've read almost everything possible for this issue and couldn't find anything that would solve my problem. This is erorr log I'm getting: Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/site.com/httpdocs/cgi-bin/cron.pl When accessing site I get 403 Forbidden "You do not have permission to access this document." error. I've modified my .htaccess to have this: Options +FollowSymLinks +SymLinksIfOwnerMatch AddDefaultCharset utf-8 RewriteEngine on RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule ^(.*) - [E=HTTP_CGI

Access Apache VirtualHost from any computer on LAN?

半城伤御伤魂 提交于 2019-11-30 07:33:23
I have wamp setup with quite a few websites setup as virtual hosts like this in httpd.conf <VirtualHost 127.0.0.1> ServerName project1.local DocumentRoot "c:/wamp/project1/" </VirtualHost> I have these input in the wamp machine's host file and I can access them just fine on that machine. 127.0.0.1 project1.local However, when I try to put an entry on my OSX machine as (192.168.1.101 being the internal ip of the wamp machine) it won't pull the page up. 192.168.1.101 project1.local Is there something else I need to do to make this work from other machines? Thanks! You either need <VirtualHost

Redirection on Apache (Maintain POST params)

我的未来我决定 提交于 2019-11-30 06:42:33
I have Apache installed on my server and I need to redirect from http to https. The reason for this is our load balancer solution cannot hand https so requests come in on http and then we transfer them to https using the below lines in the httpd.conf file. <VirtualHost 10.1.2.91:80> Redirect 302 /GladQE/link https://glad-test.com/GladQE/link.do </VirtualHost> This works fine for GET requests but POST requests will lose the parameters passed on the URL. What would be the easiest way to perform this redirect and maintain POST params? I need to get from http://glad-test.com/GladQE/link.do to here

Apache multiple DocumentRoot

杀马特。学长 韩版系。学妹 提交于 2019-11-30 06:24:08
How can I have the following setup in apache? http://server/ABC/* should be served by /var/www/ABC/* http://server/PQR/* should be served by /var/www/PQR/* Every other request should be served by /var/www/Others/index.php (a single file). Thanks, JP Use Alias: Alias /ABC/ /var/www/ABC/ Alias /PQR/ /var/www/PQR/ Leave the document root pointing to /var/www/Others/index.php. It could do the trick. :) You can do this with mod_alias, which is part of the apache distribution. http://httpd.apache.org/docs/current/mod/mod_alias.html for serving everything else with the single file you would use mod

500 Error on apache server - “AllowOverride not allowed here”

我是研究僧i 提交于 2019-11-30 05:40:45
问题 I have set up a server on my Mac (OSX 10.9) but it's returning a 500 error with the following message in the error log… [alert] [client ::1] /Users/user/Sites/mysite/.htaccess: AllowOverride not allowed here Here's the code in my .htaccess file Options +FollowSymLinks -MultiViews AllowOverride All # Turn mod_rewrite on RewriteEngine On RewriteBase / RewriteMap lc int:toLower RewriteCond %{REQUEST_URI} [A-Z] RewriteRule (.*) ${lc:$1} [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^i

keycloak apache server configuration with 'Mixed Content' problems

纵饮孤独 提交于 2019-11-30 04:57:54
问题 have a problems configuring keycloak behind my apache server, Mixed Content: The page at 'https://dev.mydomain.com/auth/admin/master/console/' was loaded over HTTPS, but requested an insecure script 'http://dev.mydomain.com/auth/resources/1.7.0.final/admin/keycloak/js/controllers/groups.js'. This request has been blocked; the content must be served over HTTPS. My apache configuration is, ServerName dev.mydomain.com ServerAdmin dev@mydomain.com SSLEngine on SSLCertificateFile /opt/mydomain

Forbidden You don't have permission to access on this server. Centos 6 / Laravel 4

自闭症网瘾萝莉.ら 提交于 2019-11-30 01:42:31
问题 i got a problem after i finish to set up LAMP and installed my laravel 4 application. Everything seem went well, when i go on my ip address url, it show me the first page of my application correctly, but all the rest of the page throw me an 404 error The requested URL was not found on this server. So I added to my httpd.conf (under the virtual host of my project) - AllowOverride All Order allow,deny <VirtualHost *:80> ServerName VPS-IP-ADDRESS DocumentRoot /var/www/html/nextmatch/public_html

How to set up Apache ProxyPass to preserve Express routes

房东的猫 提交于 2019-11-29 19:29:34
问题 In my Apache config im forwarding all traffic on /node to port 3000 , where the Express server is listening. <IfModule mod_proxy.c> ProxyRequests Off ProxyPass /node http://localhost:3000/ </IfModule> The Express app looks like this: var express = require('express'); var app = express(); var router = express.Router(); router.route('/route/:id').get(function (req, res) { res.json({ description: 'Welcome to a route with an ID' }); }); router.route('/route').get(function (req, res) { res.json({