All Questions
Tagged with apache-2.4 virtualhost
510
questions
0
votes
0
answers
4
views
Config a CwPanel local server to read local domains
I have the following situation: I have a local test server where I use Almalinux 8 with CWPanel. I have several test domains configured on it: 192.168.1.50/~virtual 192.168.1.50/~cliente 192.168.1.50/~...
0
votes
0
answers
33
views
How to serve two different websites on one Apache Webserver without using Virtual hosts? [duplicate]
We use Apache Webserver on Windows to serve one web app within our software. A browser embedded in our software accesses the site on localhost. The webserver and the web content are installed on every ...
0
votes
1
answer
54
views
Fresh Apache (re-)install ignoring default vhost
I was trying a few thing for a custom "default" Apache vhost and nothing seemed to work, I always got the /var/www/html/index.html served instead of other contents or errors I wanted to ...
1
vote
1
answer
117
views
Apache AliasMatch with Multiple Subdomains
I have the following virtual hosts:
<VirtualHost *:443>
ServerName article.example.com
AliasMatch "^/(.*)" "/var/www/html/article.php"
</VirtualHost>
<...
0
votes
0
answers
203
views
Apache2 with Virtualhosts and Cloudflare are not working
I have a Debian 11 Server with one public IPv4 Address and One Domain. The subdomain mail is defined in a virtual host with a reverse proxy for mailcow. The subdomain mail is also the reverse DNS for ...
0
votes
2
answers
105
views
Apache virtualhosts conf let wrong servername requests going through proxy
I have moved a server configuration to a new server and at the same time configured it with apache mod_proxy to access a gunicorn/django webserver (inside a docker container on port 8000). Previous ...
0
votes
0
answers
1k
views
configuring content-security-policy for apache virtual hosts
I have Apache 2.4 with these sites configured in the httpd-vhosts.conf file:
<VirtualHost *:80 *:8080 *:8084>
DocumentRoot "c:\apache_php\sites\public"
ServerName www.mydomain....
2
votes
1
answer
2k
views
Why is my Apache Virtual Hosts configuration not working correctly?
Background
I have been using an Apache server with only one site and this has been working really well. My working single-site config is at the bottom of the question. Recently, I have had to create ...
0
votes
1
answer
342
views
Bring website online with domain without adding the port
I come to you because currently I have a website that is hosted on my web server. But on this server I have several websites hosted on it. So to access it you have to put a port number. Until then it'...
0
votes
1
answer
1k
views
How to make my website SSL secure with Ubuntu 22.04.2 LTS server and Apache
I'm trying to access my website through https://. but all my efforts are in vain.
First I will explain how I did everything to get into the context.
The server hardware is a Raspberry PI2B. With ...
-1
votes
2
answers
103
views
Wildcard sub-domain apache vhost doesn't load my website folder
I'm having some issues getting my apache virtual host to load the correct folder on my server. I'm building a public status pages feature for my platform, and one feature is allowing users to specify ...
0
votes
1
answer
826
views
Apache not working with NameVirtualHost config
I have a fresh apache setup(Apache/2.4.57 (Unix)) and am struggling with the namevirtualhost config. If I run apachectl -S the output is missing the usual
IPADDRESS:80 is a NameVirtualHost
I ...
0
votes
1
answer
400
views
Does SuexecUserGroup work with Virtualhost in Apache 2.4
I'm trying to set up a virtualhost that uses CGI scripts that run as a particular user and group. I'm using the SuexecUserGroup directive, but that doesn't seem to work.
Basic setup. User "Bob&...
0
votes
1
answer
375
views
After update from Apache 2.2 to 2.4, Aliases no longer work
I'm not a stranger to server configuration but on my local development systems (all of them), some update seems to have broken the Web sites' aliases as none work now. I'm not sure when it happened as ...
1
vote
1
answer
701
views
Apache 2.4 VHosts with FastCGI and suexec-custom
I have setup at my local machine Ubuntu 22.04 Apache 2.4 with suexec-custom.
In fact, this setup was working from Ubuntu 16 up to this update to 22.04.
I only load some modules, reload some other and ...
0
votes
1
answer
67
views
Apache httpd on a backup machine where hostname is not matching
I have to run an Apache httpd server on a backup machine, which is a CentOS. In this case, it is a WordPress multisite installation. Since it is a backup machine, the DNS server does not point to the ...
0
votes
1
answer
48
views
Drop all connections from other domain except from original domain on Apache 2.4
I have ubuntu server with apache 2.4 web server and original domain is running with ssl. Someone pointed their domain to my server and in my virtual host, it specify there the servername and ...
0
votes
1
answer
2k
views
Apache virtualhost port 443 serves content from port 80 configuration
I'm running Apache 2.4.52 on Ubuntu Server 22.04.
I'm trying to run https through port 443, eventually aiming to have a redirect from port 80 to force content on https. However, Apache seems to be ...
1
vote
0
answers
470
views
Apache 2.4 "Require ip" not working for /server-status, /phpMyAdmin etc with VirtualHost directives added in httpd.conf
I recently changed using the Event MPM in my Apache 2.4 installation, alongside PHP-FPM and FastCGI proxy, I hope that wasn't the reason for my problem. I also started working with name-based ...
0
votes
1
answer
367
views
Apache2 how to generate random string for subdomain
I want to issue a redirect to a new randomly generated subdomain name for every request I get. Below you can find my vhost configuration. I want to do a redirect towards a subdomain containing some ...
0
votes
2
answers
63
views
Apache VirtualHost - per user ProxyPass
I'm trying to configure Apache to redirect users to different paths based on their authentication credentials (using htpasswd). I've managed to set up ProxyPass, which enables the redirection of the ...
0
votes
1
answer
35
views
How to make site map file public on site secured by shibboleth
We use shibboleth to secure an apache virtualhost. We would like to make single file (a site map) available publicly for this site.
Is there way to code this in the virtualhost?
The current virtual ...
0
votes
1
answer
303
views
Configuring Virtual Hosting Httpd - Fedora Server - 'sites-available and sites-enabled' vs 'conf.d/vhost.conf'
The current set-up for my web server is a 1GB nanode using Fedora37 as the distribution for the compute instance. For the web server I am using Httpd (Apache 2.4.54), and am now in the process of ...
0
votes
1
answer
168
views
How to install memcashed on a LAMP stack with PHP FPM?
I have a LAMP stack with PHP FPM and multiple virtual hosts with Wordpress sites on.
I have tried to install memcashed using this tutorial.
In Wordpress sitehealth I get: "You should use a ...
0
votes
1
answer
2k
views
Cloudflare Tunnel without having to also use noTLSVerify?
I’ve got a simple domain setup on an Ubuntu server running Apache (literally just displays a static HTML file); I set it up with LetsEncrypt and it was working without issue. I wanted a bit more ...
1
vote
1
answer
632
views
How to create alias to url in Apache 2
I have main url like http://apps1.example.com and i want create alias like
http://apps1.example.com/svc-base
in my vhost config
<VirtualHost *:80>
ServerName apps1.example.com
...
0
votes
1
answer
244
views
apache virtualhost not taked into account
I have multiple domains and i have imagined that one VirtualHost for each would be the way to go. glpi.localnet.lan is never loaded, whereas web.localnet.lan is always display instead, even if i tip &...
0
votes
0
answers
159
views
404 errors with Virtual Host in VPS Server
I'm trying to create a virtual host in my vps server but I'm receiving "HTTP Status 404 - Not found".
My Virtual Host:
vi /etc/httpd/conf.d/demonstracao.itcmedbr.com.conf
<VirtualHost *:...
0
votes
0
answers
82
views
Apache HTTP/2 Issues on Virtual Hosts
I have third-party domains pointed to my IP address using A records, and these are configured on the server using a Virtual Host configuration. Here's an example:
Protocols h2 h2c http/1.1
<...
0
votes
1
answer
534
views
Apache virtual host not catching all requests
I have 80 port requests redirected to 443 like this
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com mail.example.com
Redirect permanent / https://example.com/
&...
-1
votes
1
answer
1k
views
Match VirtualHost by X-Forwarded-Host header
I am using apache 2.4 and would like to create multiple vhosts.
The vhosts should be matched based on the X-Forwarded-Host header, instead of the Host header.
Unfortunatly I could not find anything in ...
0
votes
1
answer
977
views
Apache virtual host serving incorrect index.html file for one of two domains connected to server
I have two domains setup on a single server using Apache Virtual Hosts. The first domain (domainA.com) is loading the index.html file of the second domain (domainB.com), even though the first domain (...
1
vote
1
answer
42
views
Advice on a catch all for https incoming but no cert installed
I am trying to think of an elegant way to handle an SSL / HTTPS issue we are having. I have read THIS QUESTION but it raises a slightly larger question in my case.
Say I have these domains installed ...
0
votes
1
answer
821
views
Request exceeded the limit of 10internal redirects on cPanel Server
I just created a subdomain called virtual from cPanel and its return 500 error. When I check the error_log I see below error:
AH00124: Request exceeded the limit of 10internal redirects due to
...
1
vote
1
answer
49
views
Issue with Apache 2.4 and VirtualHosts
Can somebody tell me what I'm doing wrong here, I have 1 server running Apache 2.4 with 3 VirtualHosts in it, setup this way:
<VirtualHost helpedsk.example.com:80>
ServerAdmin [email protected]
...
0
votes
1
answer
2k
views
Apache VirtualHosts not working/redirecting? (Reverse proxy)
I am trying to set up Apache as a reverse proxy on a new Ubuntu 22.04 virtual machine. We have an existing Apache reverse proxy on Ubuntu 18.04 where everything is working as intended. This new ...
0
votes
1
answer
92
views
Inventory of all vhosts across multiple webservers
I was tasked to create an inventory of all websites/webapps hosted on our infrastructure (couple thousand sites hosted on around 120 Linux VMs). Most of the sites are served by Apache (httpd 2.4) but ...
0
votes
1
answer
4k
views
Configuring virtual hosts; Need to just allow one ip address to access the website and deny all. What's wrong with the below code?
<VirtualHost *:80>
ServerAdmin example.com
DocumentRoot "C:/xampp/htdocs/example.com"
ServerName www.example.com
ServerAlias example.com
ErrorLog "logs/example....
1
vote
1
answer
179
views
Consolidating many VirtualHosts into one block, is this a job for SetEnvIf?
Edit I think what I need here is SetEnvIf
I'm attempting to consolidate all of my port-80 VirtualHosts into one block for convenience, but I'm struggling with the final piece of the puzzle.
All port ...
0
votes
1
answer
803
views
Why is htdocs not displaying directories when a virtual host has an error?
I just set up Apache v2.4, PHP and MySQL on new windows machine. I've made only a few changes to httpd.conf. I'm including httpd-vhosts.conf, which has 2 custom sites defined (I removed the default ...
0
votes
2
answers
636
views
Apache make site available to intranet and internet over same domain name
This is probably a stupid question, but I can't seem to find a solution to it.
Following scenario:
https://sub.doma.in:443 is hosted on my Apache server at home. Works great when connecting from ...
1
vote
1
answer
780
views
Serve new subdomains dynamically
I have a service example.com that needs to allow users to host a few files in their own subdomain userpage-userabc.example.com, similarly as does Github with userabc.github.io.
I currently use Apache, ...
0
votes
1
answer
451
views
Apache2 VHost for subdomain
I configured several months ago my nextcloud on my Ubuntu 20.04.3 LTS VM running on my FreeNAS, following their tutorial so bear with me, I'm in no means a trained apache2 guru ;-)
My current VHost ...
0
votes
1
answer
3k
views
Apache2: Why do I get a 403 Forbidden error?
I've been messing with this for days :(
Why do I get a 403 Forbidden error at example.com/contact?
Is this a file/folder permissions, Apache user, virtualhosts or Python issue?
I'm trying to run a ...
0
votes
1
answer
620
views
apache2 virtualhost not forwardng to correct virtual host (now a registered user)
Apache 2.4 / Ubuntu 20.4 (Linux Mint 20.3)
I am testing with 2 domain names, example1.com and example2.com
I have followed instructions at https://www.digitalocean.com/community/tutorials/how-to-...
1
vote
0
answers
418
views
Apache and VirtualHosts in RedHat, Can't figure it out
already did my research and Im burned after reading and watching videos for hours; I can't make virtual hosts works at all, it doest matter which configuration I set but Apache will ignore it and ...
0
votes
1
answer
1k
views
different configurations files to apache2?
I'm pretty new to this, and reading a lot online, but what configuration is right?
in apache2, some are talking about httpd.conf, and have all configuration in one file.
my installation have 2 ...
1
vote
1
answer
1k
views
Apache 2.4: Require (e.g. all denied) directive not honored
I'm running Apache 2.4.41 on Ubuntu 20.04 and am not able to get any Require directives working on my VirtualHost. As a minimum working example, my VHost file:
<VirtualHost *:80>
...
0
votes
1
answer
178
views
Ubuntu VirtualHost on port 8003 not working remotly
I trying create Apache Virtual Host on port 8003.
My site configuration file (/etc/apache2/sites-available/test.oracle.dev.conf):
<VirtualHost *:8003>
DocumentRoot /var/www/html/test
...
-1
votes
3
answers
971
views
how to connect to one of multiple virtual sites (apache 2.4)
If I create one site, I can access it with http://localhost ...
But if I create multiple virtual sites, with apache, on the same computer, http://localhost won't work.
How can I access it? (on the ...