httpd.conf

Apache HTTPD: How to setup Virtual Host correctly

夙愿已清 提交于 2021-02-11 18:23:55
问题 I've installed Apache httpd on my Mac and "It works". Now I need to configure a Virtual Host in order to expose my application (Java Spring) with httpd as reverse proxy in front of it. This is what I have into /usr/local/etc/httpd/extra/httpd-vhosts.conf file <VirtualHost *:443> ServerName my.domain.it:443 SSLEngine on SSLCertificateFile /path/to/cert.crt SSLCertificateKeyFile /path/to/cert.key ProxyPreserveHost On ProxyPass / http://localhost:8080/myapp ProxyPassReverse / http://localhost

Apache virtual host on different ports doesn't work

試著忘記壹切 提交于 2021-02-10 14:36:18
问题 I'm trying to serve different folders on my localhost. I'm using Windows OS. I want to serve E:/Programming/Projects on localhost:8080 , and E:/htdocs on localhost:80 My httpd-vhosts.conf file is like that: Listen 8080 <VirtualHost *:8080> ServerName localhost DocumentRoot "E:/Programming/Projects" <Directory "E:/Programming/Projects"> AllowOverride All </Directory> </VirtualHost> When I attempt to navigate localhost:80, this port works well. But localhost:8080 gives this error: 403 -

PHP Files won't open in browser - only download. What do I need to change to make it work properly?

血红的双手。 提交于 2021-02-07 18:16:21
问题 I have tried reinstalling PHP. PHP is working, and Apache2 is running. I don't know why it's not opening in a browser and displaying normally. Just so you know - my httpd.conf is empty - and instead I have everything in apache2.conf. This is because I'm using Ubuntu. Can you help me? I know it's something simple, but I can't seem to find the answer. 回答1: Have you virtual host on this project? Are you open php file with http://localhost/file.php or directly like file://...../file.php ? 回答2: In

PHP Files won't open in browser - only download. What do I need to change to make it work properly?

落花浮王杯 提交于 2021-02-07 18:16:17
问题 I have tried reinstalling PHP. PHP is working, and Apache2 is running. I don't know why it's not opening in a browser and displaying normally. Just so you know - my httpd.conf is empty - and instead I have everything in apache2.conf. This is because I'm using Ubuntu. Can you help me? I know it's something simple, but I can't seem to find the answer. 回答1: Have you virtual host on this project? Are you open php file with http://localhost/file.php or directly like file://...../file.php ? 回答2: In

PHP Files won't open in browser - only download. What do I need to change to make it work properly?

戏子无情 提交于 2021-02-07 18:15:25
问题 I have tried reinstalling PHP. PHP is working, and Apache2 is running. I don't know why it's not opening in a browser and displaying normally. Just so you know - my httpd.conf is empty - and instead I have everything in apache2.conf. This is because I'm using Ubuntu. Can you help me? I know it's something simple, but I can't seem to find the answer. 回答1: Have you virtual host on this project? Are you open php file with http://localhost/file.php or directly like file://...../file.php ? 回答2: In

While apachectl start getting open shared object file

為{幸葍}努か 提交于 2021-02-05 08:10:45
问题 I try to install apache webserver using tar file. So, I have download httpd-2.4.tar file and extract. then, I try to install 1. ./configure --prefix=/usr/local/apache but, throw, this error configure: error: APR not found. Please read the documentation. configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/ so, follow this link and fix this issue1 and issue2 Then, run following command: 1. $./configure \ --with-included-apr \ --with-pcre=/usr

Config Node JS in GoDaddy with a Domain and SSL

☆樱花仙子☆ 提交于 2021-01-29 12:00:39
问题 Hi I bougth a VPS in GoDadddy, a domanin(example.com) and add a SSL in this domain, I configured the domain with the IP of my VPS, I can open a demo page successfully . But I have a page in Node JS in the same VPS in other port, 192.168.0.2:3000(the ip is an example); I can open this page if in the browser use the IP, my page is running in the VPS successfully GoDaddy Install apache by default to can access to cPanel and WHM, so... My Questions is How Can I configure httpd.conf from Apache to

Http requests redirected to https

时间秒杀一切 提交于 2021-01-29 05:25:20
问题 Goal: I want all requests made to http://mydomain to be redirected to https://mydomain. Today I have an Apache web server which handles all incoming requests made to http://mydomain and redirects them to http://localhost:8080 (JBoss application server). I'm using proxypass for my virtual host in the Apache configuration. What do I need to do to achieve my goal? 回答1: The Apache Foundation recommended approach is to have a dummy VirtualHost on port 80 with: <VirtualHost *:80> ServerName www

Redirects been downgraded from Https to Http

醉酒当歌 提交于 2021-01-28 11:10:36
问题 We are facing an issue we don't really know where it's coming from. Our application uses Spring Cloud , Spring Oauth2 and Spring Boot 1.5.9 . The entry point is an API-Gateway service using Zuul to redirect calls to the other microservices. There is an Authorization-server to handle the Oauth2 authorization, not accessible from the outside but through the API-Gateway . It is configured to use Https for every call that comes from clients and then we use Http once inside our system to

Mod_rewrite - change .htaccess into httpd.conf file

房东的猫 提交于 2021-01-28 09:47:07
问题 I have following .htaccess rules which removing .php extension in urls from domain.com/index.php to domain.com/index/ and working fine Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC] RewriteCond %{REQUEST_METHOD} !POST RewriteRule ^ %1/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*?)/?$ $1.php [NC,L] Now I want to use httpd.conf file instead of .htaccess, but