Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

Apache ignores second virtual host

we are using Apache on an Ubuntu server to host our websites. SSL Certificates are provided be LetsEncrypt and everything worked fine for the last years. Last friday I tried to renew one of the ...
Klaus Friese's user avatar
0 votes
0 answers
100 views

What would cause virtual hosts to use the same version of php-fpm after adding distinct fpm handlers?

As soon as I enable php8.1-fpm.conf, all my sites switch from using php7.4-fpm to php8.1-fpm. All my vhost files have fpm handlers added to the <VirtualHost *:80> blocks like <VirtualHost *:...
Steve's user avatar
  • 101
0 votes
0 answers
370 views

Set up proxy for Nextjs and WordPress blog

Thanks in advance. I am new to server setup. So pardon me If I used the wrong words. I am setting up an Ubuntu server to host Nextjs and WordPress blog on the same server. I have to set up Nextjs on ...
Sandeep Solanki's user avatar
0 votes
0 answers
51 views

Show content of loaded sites-available in apache2 under ubuntu 18

I accidentally deleted a .conf in /etc/apache2/sites-available. Is there a way to retrieve the content of it? When I type a2query -s, I see that the deleted .conf is still loaded, since I did not ...
Selphiron's user avatar
  • 101
0 votes
0 answers
53 views

Apache with vhosts: Newly created site opens other site

I have a server with three vhosts, the default (domain.com), site1.com and site2.com. The server is running Ubuntu 22.04 LTS with Apache2. Until yesterday, this server only served the default domain, ...
Emily's user avatar
  • 1
0 votes
0 answers
20 views

DNS/Domain not working [duplicate]

I have domain, pointed to my VPS. I made VH in apache to serve simple index.htm file to check if everything works fine. Unfortunatelly something is wrong because page is not found(http://zoofi.me). ...
michal's user avatar
  • 101
0 votes
1 answer
120 views

Apache2 subdomain not found after addition

Here is a situation I have example.com domain pointed to my server where Apache2 runs. Currently I have two confs (one for HTTP and one for HTTPS) that accepts example.com requests and shows page ...
Johnczek's user avatar
  • 111
0 votes
1 answer
261 views

Apache vHosts - Two domains, multiple subdomains and defaults possible?

after searching and try-and-erroring for a while I came to the conclusion that my problem is a bit too special for google :-) I have 2 domains and multiple subs example.org cloud.example.org wiki....
edwarddeath's user avatar
0 votes
1 answer
80 views

Apache2 VHOST matches wrong server name

I'm running Apache 2.4.54 on Debian Bullseye and have 42 VHOSTs configured. Most of them are subdomains xxx.my.domain.com of our main domain, say my.domain.com. One client has a special domain. There ...
Powerriegel's user avatar
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 ...
Sit399's user avatar
  • 21
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 ...
Mnemosyne's user avatar
  • 131
0 votes
0 answers
45 views

How do you set up multiple virtualhosts on apache2 using only the server ip and server alias?

I'm trying to set up apache with multiple virtual hosts "filebrowser.com" and "videos.com" however, I'm only able to access filebrowser.com and not videos.com. I also have to enter ...
Brenden Delong's user avatar
0 votes
1 answer
526 views

Can't load Web API with SSL (ERR_SSL_PROTOCOL_ERROR)

So I can't get my head around this problem, and looked everywhere on the internet but did not found any working solution. 1.1. I have an apache server running as virtual host. In the initial situation,...
CharlZ's user avatar
  • 1
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 (...
Mike Hermary's user avatar
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 ...
Muhammad Dyas Yaskur's user avatar
0 votes
0 answers
19 views

How do I create a Virtual Name Host on Apache2 for a service running on localhost:8080 [duplicate]

i have a server with apache that runs a mailing service, a wordpress multisite I have followed guides online to make the above work now I have a service from Vaadin (java stuff) running on localhost:...
AltoFlower91's user avatar
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 ...
Manuel Sarica's user avatar
0 votes
2 answers
518 views

Apache2 SSL only works when virtualhost is removed?

I'm making a website hosted at sparrowthenerd.space, and I'm trying to have it use multiple subdomains so I can run NextCloud, OctoPrint, and a general webpage all from the same IP address. As I ...
SparrowTheNerd's user avatar
0 votes
0 answers
252 views

.xyz domain not recognized by apache2 as valid hostname

When I try to add a virtual host of my new domain name that ends with .xyz, apache tells me that it can't resolve the hostname : [Wed Jan 26 21:31:53.994125 2022] [core:error] [pid 25525] (EAI 5)No ...
Monsquid's user avatar
0 votes
1 answer
496 views

Certbot cannot check challenge because of Apache "Redirect / domain.com"

So there is this server that is all messed up but that is besides the point. I ran certbot and it failed. Checked the vhost for port 80. It has the blanket redirect. It dose not seem like it would ...
Meadowlark Marsh's user avatar
0 votes
0 answers
40 views

stop mail.domain.com from browser

I have a mail server setup for a domain using postfix. For the ssl cert, I have created a virtual host for that mail server. The virtual host look like this <VirtualHost *:80> ServerName mail....
Saaram's user avatar
  • 101
0 votes
0 answers
179 views

apache2: /etc/hosts won't redirect to apache2

I have newly installed apache2 and by visiting localhost apache2 is shown to be up and running. I want the same to happen when I put app in the browser. When I do try to go visit app the browser gives ...
Mr Krisey's user avatar
0 votes
0 answers
272 views

Virtual Host With Proxypass

When I try to open URL tissue.example.com, it will show tissue.example.com/tissue/index.php (the requested URL was not found) When I type tissue.example.com/index.php it will show the page but almost ...
Hisham Yacob's user avatar
1 vote
1 answer
368 views

Apache ProxyPass adding Port only on base URL

This is getting frustrating to say the least haha. I have setup a proxypass and proxypassreverse in apache under virtual host 443 to proxy to nginx running in a container on port 8443. This is all I ...
VIDesignz's user avatar
  • 113
1 vote
1 answer
92 views

2 websites hosted on same domain, 1 needs to look like a subfolder ( /blog)

I bought a VPS for my new project running apache. On it I have 2 websites on the same domain. The first one is Ruby on Rails /var/www/html The second one is Wordpress /var/www/blog I want Wordpress to ...
Adelle's user avatar
  • 13
-1 votes
1 answer
64 views

How to make it so you only have to authenticate once for a group of subdomains using a Apache virtual host?

I have a Ubuntu 20.04 LTS Server with a set of virtual host configurations that protect a group of subdomains using basic auth, for example lets say secure.example.com is password protected as well as ...
qwertyuiop's user avatar
0 votes
0 answers
46 views

How can I configure "apache2" correctly using multiple sites through VirtualHost?

I configured two sites using the "VirtualHost" method in apache2, but if there is an error in the first configuration file when I call my site, it enters the second site. my configuration ...
Marcel Roșca's user avatar
-1 votes
1 answer
64 views

Do I need 2 virtual hosts for both www.example.com and just example.com?

I have 2 questions - does it matter if the ServerName in Apache's conf file starts with www? Also if I have the following virtual host: <VirtualHost *:80> ServerName www.example.com ...
Onyx's user avatar
  • 101
2 votes
1 answer
2k views

Forwarding Apache SSL-Port to Web-App on localhost

I'm struggeling for days now to route a subdomain with SSL to a local running vue app, specifically the directus admin ui. I've done this before, like with the tool monit, and it worked like a charm: &...
sagerobert's user avatar
1 vote
2 answers
3k views

Custom listen ports for Apache not working

I wanted Apache (v2.4.41) to listen to port 802 and 44302 instead of 80 and 443 on my Ubuntu (v20.04) server so I did the following: Edited the port numbers in /etc/apache2/ports.conf. Now the file ...
AndrewL64's user avatar
  • 189
1 vote
0 answers
346 views

Reverse DNS and Apache virtual host

In short: Apache's VirtualHost doesn't work as intended when the reverse DNS is enabled. I'm managing a web service on a single CentOS server. It has a single IP address and multiple subdomains, and ...
mmrn's user avatar
  • 121
0 votes
1 answer
785 views

Apache Site Goes To Wrong Page If I Manually Enter HTTPS:// in the URL

If I type in example.com into the URL it redirects to https://www.example.com which is great, same with typing http://example.com I get the correct redirect to https://www.example.com. However if I ...
Z D's user avatar
  • 11
1 vote
1 answer
308 views

Apache Dynamic Virtual Hosts with multiple domains

I've tried this, but it gives me a 403 at /home/* What I want to achieve is that every folder under home/*/domeenid gets turned into a vhost with the servername being of that folder. Note, that the ...
Rando Hinn's user avatar
1 vote
1 answer
4k views

Apache add new site as subdomain on server

I have two sites which runs independently on my VPS, let's call them site1 and site2. They are respectively located at /var/www/html/site1 and /var/www/html/site2 I don't have a domain name yet but I ...
Arkaik's user avatar
  • 113
0 votes
2 answers
2k views

Apache2 react app + laravel REST api on same domain

So my goal is I have my domain named example.com conf for example.com <VirtualHost *:80> ServerName example.com ServerAlias www.example.com ServerAdmin webmaster@...
Danys Chalifour's user avatar
0 votes
0 answers
1k views

Cannot connect to my site with apache over port 81

I have two sites and I want to run them in the same IP but in different ports with Apache. I modified ports.conf file as follows: NameVirtualHost *:80 Listen 80 NameVirtualHost *:81 Listen 81 and the ...
Capdi's user avatar
  • 101
1 vote
1 answer
1k views

How to Set Up folder Based Virtual Hosting (Vhosts) With Apache Web Server on ubuntu like /localhost/site1 localhost/site2

I am trying to configure virtual hosts with multiple sites with codeigniter based on folders on ubuntu 18 with Apache2. By this what I mean is site1 is to be accessed by using url http://localhost/...
Aravinda B N's user avatar
0 votes
0 answers
638 views

403 Forbidden caused by AH01630: client denied by server configuration: /data

I am getting this titular error message when following this guide in the Postfix admin section of the tutorial from Apache2's error logs and trying navigate to the website https://mailadmin.example....
sangstar's user avatar
1 vote
1 answer
1k views

How to run multiple subdomain under same IP in apache2

I am trying to run dev1.domain.com and dev2.domain.com under the same IP address. My virtualhost configs are correct. What is happening is when I try to go to dev2.domain.com, it automatically ...
O_o's user avatar
  • 111
0 votes
1 answer
279 views

Web app on a VPS. How to make it appear on a subdomain?

I'm using a personal VPS (Ubuntu 20, Apache2) to host a web app. Currently there are 2 static sites, site1.com and site2.org, both working. I installed an app that is currently available on port 8065, ...
nivek's user avatar
  • 103
0 votes
1 answer
49 views

Virtualhost1 SSL affecting Virtualhost2 Aliase SSL

i am loading the SSL files for my wildcard subdomains from Virtualhost, but the second virtual host loads the ssl file of the first virtualhost, and the browser reports Invalid certificate error Heres ...
Manuel E's user avatar
1 vote
0 answers
1k views

Apache, Ubuntu multiple ports or subdomains with SSL reverse proxy to different ports same server

I'm struggling with something here. I have an Ubuntu 18.04 VM in azure + Apache2 installed. I have a domain (example.com) pointing to my VM's web server /var/www/ and recently secured the server ...
bikeactuary's user avatar
0 votes
1 answer
693 views

Apache serves Subdomain instead of Domain

I had two sites up and running on my server(nextcloud.example.com(Nextcloud Instance) & example.com (Grav Instance)). I added a Postfix configuration on the server and now I'm also able to send ...
Lukas's user avatar
  • 3
0 votes
0 answers
5k views

Xampp redirect configured vhost to dashboard

I have XAMPP long time and i am using Apache for PHP websites. I have 5 configured vhosts, projects in same parent directory, with same vhost confing and dns setting. But my last configured vhost, ...
Lajdák Marek's user avatar
2 votes
1 answer
3k views

Apache virtualhost is redirecting to the wrong virtualhost

I am trying to implement a second domain within an existing digitalocean droplet. Because I'm on DO, I followed the answer by ryanpq on this thread: https://www.digitalocean.com/community/questions/is-...
Jay Jung's user avatar
  • 121
0 votes
2 answers
436 views

How to redirect http to https while the other folder stays http?

I have 2 folders, CRM and my_website. The my_website can be access to https://example.com/ (it will change http to https), while the CRM is http://example.com/crm. and this is my virtual host 000-...
Storm Spirit's user avatar
1 vote
1 answer
1k views

Apache VHost redirect aliases to HTTPS

I'm trying to do Virtualhosts on my "playground" VPS. I need it to redirect 3 or more domains to the main one. Also it should redirect HTTPS, Lets Encrypt is configured and working well. In ...
sjiamnocna's user avatar
1 vote
1 answer
542 views

apache2.4 with vhosts & TLS certificates: certificate for wrong vhost presented

I operate a server hosting multiple virtualhosts with apache2.4. A newly hosted domain (https://www.yachtenwelt.de) is correctly using the respective TLS certificate. In addition, I have to ensure ...
DHopf's user avatar
  • 13
1 vote
1 answer
122 views

Second subdomain ignores DirectoryIndex and uses default domain index file

I'm running an apache2 web server that came pre-installed on debian. Apache configuration hosts file is: <VirtualHost *:80> ServerName domain.com ServerAlias www.domain.com ...
bulletgirl22's user avatar
0 votes
0 answers
1k views

(Reverse Proxy) Apache REMOTE_ADDR Returns (null)

I have a server that sits behind a reverse proxy that require client IP address, and to achieve that I'm trying with the lines below to add X-Forwarded-For in the request header, RequestHeader set &...
Zia's user avatar
  • 3