httpd.conf

mod rewrite - handle url request without php extension

谁说胖子不能爱 提交于 2021-01-28 06:36:39
问题 i want server requests without .php ending to be handled like they had .php. for example http://example.com/exampleSite is requested by the user. How can i use a rewrite rule to handle it like it was requested as http://example.com/exampleSite.php? I do not want to use .htaccess (as it is recommended to put rewrite rules into a directory block inside the apache vhost config. And i only want this to affect my php files in the root directory. The following config unfortunately does not work.

Apache doesn't load module from PHP

自闭症网瘾萝莉.ら 提交于 2020-06-25 09:48:09
问题 I am following this portuguese article to configure Apache and PHP: How Install And Configure The Development Environment in PHP - Part 2. I already set up the php.ini and httpd.conf files. Besides to php5apache2_4.dll is in the right directory, but when I restart the server show me the following error: httpd.exe: Syntax error on line 531 of D:/Apache24/conf/httpd.conf: Invalid LoadModule path \xe2\x80\xaa"D:/php-5.6.13/php5apache2_4.dll" Httpd.conf: LoadModule php5_module ‪"D:/php-5.6.13

configuring multiple domains using virtual host with mod proxy in a single httpd instance

我的梦境 提交于 2020-06-17 14:12:40
问题 I have an apache instance running three domains using name based virtual hosting and every domain has resources to reverse proxy them down to an application server. Application server is a JBoss running a since JVM instance (http://x.x.x.x:8080/) The domains along with their resources are, www.abc.com - alpha www.def.com - beta www.ghi.com - gamma - (root URL - no resource) abd.com and def.com domains have one resource whereas ghi.com has two (root (/) and gamma). this is how we have setup

how to configure apache server to talk to HTTPS backend server?

落爺英雄遲暮 提交于 2020-05-24 08:49:08
问题 I configured apache server as a reverse proxy and it works fine if I point a backend server as HTTP. That is: I configured virtual host 443 like: ProxyPass /primary/store http://localhost:9763/store/ ProxyPassReverse /primary/store http://localhost:9763/store/ Here users will access the server like https://localhost/primary/store And this works fine... But I want to configure HTTP server like; ProxyPass /primary/store https://localhost:9443/store/ ProxyPassReverse /primary/store https:/

HTTP X-Forwarded-Host Behavior Without Port

◇◆丶佛笑我妖孽 提交于 2020-05-24 03:27:10
问题 I found out that X-Forwarded-Host HTTP header is not very well defined in the case of ports. Maybe that is the reason why various implementations behave differently when it comes to this header. Usually, this header can contain a port, e.g. b.com:123 which is straightforward. But what if it does NOT contain a port and server is running on non-default port? After my little research, I discovered that some implementations introduce "non-official" X-Forwarded-Port header. Right now, I'm thinking

How to add comment in apache httpd.conf not as a complete line?

给你一囗甜甜゛ 提交于 2020-04-08 19:01:59
问题 In an apache conf file, if a line is start with # , that line is counted as comment. For example, #This is a comment line #And then the following is some real settings: AllowOverride None However, this is not allowed. #And then the following is some real settings: AllowOverride None #A comment that starts in the middle of line Is it possible to starts a comment in the middle of the line? And if yes, how? 回答1: The documentation states that it is not possible: ... Lines that begin with the hash