Posts

Showing posts with the label apache

How can I view the complete httpd configuration?

Image
Clash Royale CLAN TAG #URR8PPP How can I view the complete httpd configuration? I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs) Is there a way to list the final httpd configuration? Like the whole running setup configuration in a single file? apachectl -S for running config, apachectl -M to show loaded modules – arco444 Nov 26 '14 at 15:54 apachectl -S apachectl -M Except that apachectl -S does give you neither "the full complete configuration" nor " the whole running setup configuration in a single file". – Frederick Nord Feb 2 '17 at 16:39 ...

Magento 2: Too many redirects behind traefik reverse-proxy

Image
Clash Royale CLAN TAG #URR8PPP Magento 2: Too many redirects behind traefik reverse-proxy In front of my web servers and Docker applications I'm running Traefik to handle load balancing and reverse-proxy. In this specific case Magento 2 is running on another host in the same private network as the Traefik host. Traffic is coming into the firewall on port 80/443 and forwarded to Traefik which forwards the request based on the domain name (in this case exampleshop.com). My Traefik configuration looks like this: [backends] [backends.backend-exampleshop] [backends.backend-exampleshop.servers.server1] url = "http://192.168.1.224:80 passHostHeader = true [frontends] [frontends.exampleshop] backend = "backend-exampleshop" [frontends.exampleshop.routes.hostname] rule = "Host:exampleshop.com" For regular websites above configuration always worked as expected (a working HTTPS connection with valid Let's Encrypt cert) but in this Magento ...

Apache Server Web directories access restrictions

Image
Clash Royale CLAN TAG #URR8PPP Apache Server Web directories access restrictions I have set up an apache server, hosting a website. For example In my website you can play with an online javascript atari roms. Whenever you load a rom in the website, the javascript temporarily downloads it to your browsers cache. If you for example write website.com/roms/atari.zip you can download this rom. I do not want this. Is there a way to forbid direct access to this file but also whitelisting access from within the javascript requests? Many thank you in advance. you can require a specific request header, which you supply with javascript request, and forbid access without that header. However, if someone knows and provides that header, the file would be accessible with direct link as well. would that be what you want? – eis 1 hour ago ...

How can allow access website from internet with vps win server 2012?

Image
Clash Royale CLAN TAG #URR8PPP How can allow access website from internet with vps win server 2012? I using a VPS of google: Win server 2012. i using web server: Apache 2.4 and PHP 7.1 Current i can access website from local with private ip http://10.142.0.2/index.html Now, i want pubic website: I check on Firewalls of VPS but it still can not access: Firewalls Allow HTTP traffic Allow HTTPS traffic How can allow access website from internet with public ip? http://35.227.108.81/index.html Thank you. Have you checked the firewall of your VPS server? I think you must open port for Apache. – VinhCC 10 hours ago can you give a link help setting? – Bibo 10 hours ago ...

The program can’t start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this issue

Image
Clash Royale CLAN TAG #URR8PPP The program can’t start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this issue hello im trying to run appache server from xampp on windows 8.1. but it doesnt run because of this. to solve this problem i updated windows and then i tried to install VC++ 2015(x64) but it doesnt install too for the same reason(the dll file doesnt exiSt). now i need you to help me. thanks. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Apache 000-default.conf not displaying default site

This summary is not available. Please click here to view the post.

htaccess redirect and rewrite rules conflicting

Image
Clash Royale CLAN TAG #URR8PPP htaccess redirect and rewrite rules conflicting I want to rewrite all requests to index.php?r= So that /sth becomes /index.php?r=sth I have applied this rule that works: RewriteCond %{REQUEST_URI} !^/index.php$ RewriteCond %{REQUEST_URI} !^.*.(jpg|css|js|gif|png|pdf|php)$ [NC] RewriteRule ^(.+)$ index.php?r=$1 [L] However I want to also have redirects such as Redirect 301 /sth /sth-new What happens is that it works but the url becomes: /sth-new?r=sth Do you have any solutions - suggestions about why this is happening? How can I implement a global rule and also have simple redirects? 1 Answer 1 You can do it like this: RewriteRule ^sth/?$ /sth-new? [L,R=301] RewriteCond %{REQUEST_URI} !^/index.php$ RewriteCond %{REQUEST_URI} !.(jpg|css|js|gif|png|pdf|php)$ [NC] RewriteRule ^(.+)$ index.php?r=$1 [L] You should keep external redirect rules before your internal rewrite rul...

How to serve different web apps using one domain name in Apache?

How to serve different web apps using one domain name in Apache? I'm currently trying to deploy my Django 2.0 App on an Apache Web Server. However I'm experiencing difficulties in configuring it because my Virtual Host configuration overrides other Virtual Hosts which is used by other projects (Ruby and PHP WebApps). We only have one domain name at the moment so I cannot use other domain names to host my app. Is it possible to serve different kind of apps with one domain name using Apache Virtual Hosts? Yes it is possible. – Nic3500 yesterday Can please give me an example of a Virtual Host Configuration? I'm really confused with the ones in the Apache website. – nixon 10 hours ago ...