Questions tagged [virtualhost]

Questions relating to virtual hosting; that is, serving content for multiple logically-separate entities from the same machine. Usually relates to name-based virtual hosting in the web server, but can also cover other protocols such as SMTP or IMAP.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

XAMPP VirtualHost redirected /dashboard

I know there are many questions similar like mine out there, but ... If I launch XAMPP on my Windows 10 box with user U1 and switch to user U2 the redirect works! Therefore I think the windows hosts ...
0
votes
2answers
26 views

Can I do https on some domains but not all on my site?

I have two sites (home server and linode VPS) and I have some subdomains of one domain on one site and some on the other. I also have two or three other domains on both servers. I currently use Apache ...
0
votes
1answer
33 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
1answer
21 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 ...
0
votes
1answer
22 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 ...
0
votes
0answers
14 views

Configuring SSL With Virtual Hosts under Apache and ubuntu

I've got two websites being served from a ubuntu instance. So, https://siteone.com and https://sitetwo.com both work fine. My subdomain were fine https://subdomain.siteone.com and https://subdomain....
0
votes
1answer
35 views

Private file storage area settings in Drupal 9.3 ($settings['file_private_path'] =)

I use Drupal 9.3 and I have created a private folder outside the root directory. I followed the documentation [link] and added the following line in my settings.php file in drupal: $settings['...
0
votes
1answer
25 views

In LiteSpeed, where is $VH_ROOT defined?

After installing LiteSpeed, the first task when experimenting is often setting up a vhost. When we look around dashboard at various settings we come across some variables. One of which is $VH_ROOT. ...
-1
votes
3answers
54 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 ...
0
votes
1answer
9 views

Nginx not showing 404 when attempting a nonexistent folder

When trying to visit a folder that doesn't exist (i.e. https://domain/nonexistent) it just loads the root index.php. It does show 404 when attempting to load a specific file (https://domain/...
0
votes
0answers
33 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....
0
votes
0answers
49 views

Site can't be reached Virtual host Apache Manjaro

my httpd virtual host file all sites access expect sachin.new are accessible. "sachin.new" shows "site cannot be reached" <VirtualHost *:80> ServerAdmin sachin28new@gmail....
0
votes
1answer
67 views

TLS certificate for SNIproxy, or a reverse proxy with virtual host with a TLS certificate

I currently use SNIProxy (it's the simplest I've seen so far to set up virtual hosts). However, I can only set SSL certificates separately per virtual host with each service's configuration (each one ...
0
votes
0answers
16 views

Connection Refused to all sites using ProxyPass HTTPS 443

I am trying to set up proxy forwarding for a https site that I want to move to another internal server. I want the remote server to handle the certificates as well. The issue is, when using the ...
0
votes
1answer
104 views

Apache2 VirtualHost RedirectPermanent and AJP Proxy Conflicts

It turns out that locations controlled by ajp ProxyPass on my site are being processed before the VirtualHost redirect, which came to my attention because google has indexed 25k+ pages at ardownload....
1
vote
1answer
70 views

Apache Not Redirecting Non-WWW to WWW HTTPS

I have a site, www.example.com, that I can't visit without entering the www. Using an Apache Virtual Host, I'm trying to make it so if non-www is entered, it's automatically redirected to www. If I ...
0
votes
0answers
144 views

Nginx - virtualhost not working properly

I bought macOS Big Sur and I'm trying to install php + nginx on it, but I have a problem all the time and can't add my domain correctly. I have this configuration: usr/local/etc/php/7.3/php-fpm.d/www....
0
votes
0answers
72 views

Serving Django App with Apache 2 on Virtual Host

I am learning the Django framework and can run my first app on the development server using: python3 manage.py runserver However, what I really want to do is serve my app with Apache so it can be ...
0
votes
1answer
32 views

Forbidden (403), when accessing server-status on Apache [duplicate]

I am trying to access Apache server-status?auto but it is giving me Forbidden 403 Message I checked apache2.conf and there is this options under html directory: <Directory /var/www/html> ...
0
votes
1answer
130 views

ProFTPd config via SFTP and FTP

I have a ProFTPd that actually use FTP protocol, but I would like to use SFTP too. I found a solution with <VirtualHost> block, but it doesn't work for me. <IfModule mod_sftp.c> &...
0
votes
0answers
29 views

Apache ErrorDocument subject to Rewrite Rules?

We are working on an AEM dispatcher configuration, and are trying to correctly configure our ErrorDocument settings in conjunction with rewrite rules. In short - it's unclear whether ErrorDocument ...
1
vote
1answer
59 views

Apache 2.4 Convert .htaccess and rewrite it to vhost.conf

I am rewriting the Apache 2.4 configuration that I've received from the old development team. I have ~200 lines of similar configuration, and I can not understand on what principle I need to change ...
0
votes
0answers
27 views

letsencrypt not working for base domain

I'm using centos 8, and have installed let's Encrypt certificate that's not working for base (root) domain but working for sub domain. I've checked certificates available for both root and sub domains ...
1
vote
0answers
98 views

Apache setting "SetEnv PHP_ADMIN_VALUE open_basedir=path" is not restricted to its virtual host config

I have an Apache web server installed on my Ubuntu server 18.04 with many virtual hosts configured, I use different open_basedir for each vhost, recently I had to change normal php7.2 to php-fpm to be ...
0
votes
1answer
301 views

Apache alias ignored when used with ProxyPass

I'm trying to install yotter on my server, and I want to use apache instead of nginx. The installation guide only lists an nginx configuration file, which I'm trying to "translate". The ...
2
votes
2answers
86 views

Nginx redirect to another domain without trailing uri

I am trying to get http://foo.mydomain.xyz/one/two/three.json by calling http://bar.mydomain.xyz/cat/one/two/three.json. I am using the following configuration: server { listen 80; ...
0
votes
0answers
43 views

Change Nginx proxy pass public path

I have a Python/Django API with a unique endpoint /videos running on my Debian server. The Nginx vhost looks like this: server { server_name example.com; location / { # Pass to ...
0
votes
1answer
43 views

Nginx puts browser into a redirect loop when using multiple server blocks

I'm using Nginx to host a number of virtual hosts (or server blocks in Nginx nomenclature). These hosts all share the same domain with each assigned its own subdomain. One subdomain enters an endless ...
0
votes
0answers
22 views

Apache2 Vhost issues - when my virtualhost is enabled it makes the root domain show that virtualhost

I am running apache2 on a Debian 10 server. I have a virtualhost for one of the subdomains I have. I'm having an issue where if the subdomain's virtualhost is enabled, going to broadcastre.cc will ...
0
votes
0answers
20 views

Two applications on apache2 subdomain.example.com and example.com

I would like to get working apache2 configuration with http://openproject.example.com and https://example.com (wordpress blog). My configuration: /etc/apache2/sites-enabled/wordpress.conf <...
1
vote
1answer
155 views

Laravel route (voyager and others) shows 404

I Use Apache 2.4.41, on WSL2/Ubuntu. There I have a laravel project, with Voyager installed. I also use a virtualhost(vh) for it. Accessing the App url http://myapp works. However - The Voyager app at ...
0
votes
0answers
39 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 ...
0
votes
0answers
28 views

Only one of proxy works out of multiple defined in a VirtualHost

This is my configuration for reverse proxy using the Apache web server. Listen 88 <VirtualHost *:88> ProxyPreserveHost On ProxyPass /ecommerce/api/ http://127.0.0.1:8000/api/ ...
0
votes
1answer
78 views

use ppp for Internet for netns

Use of ip r add 0.0.0.0 via 172.20.10.10 src 10.0.100.10 GOT: Error: Invalid prefsrc address How to fix this? Goal: netns (host) => ppp0 => Internet via ppp0 My config: /home# ip netns ns2 ns1 (...
0
votes
0answers
28 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 ...
0
votes
1answer
47 views

Auto Virtual Host - Single Nginx config

I am trying to create a single Nginx config for multiple hosts based on a directory. I followed a guide which seems to work well with standard HTTP setup but when I add the HTTPS 301 redirect, I can ...
0
votes
0answers
46 views

nginx location alias to root dir with another index file

i have 2 index file in root dir (index.php, thanks.php) and want to use thanks.php when user request other location, for ex: when user request example.com nginx show index.php,but when user request ...
0
votes
0answers
39 views

Apache sort order and preventing merging using the location directives in virtual server

I have two locations, one of which is a subset of the other. I would like the match to be either/or. However, in the more specific path, it appears to match both and merge the potential weblogic ...
0
votes
1answer
49 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 ...
3
votes
3answers
658 views

nginx denies all requests to a virtual host . requests are coming from a nginx tcp forwarder

Summary - need to add whitelist ips to the mysite1.example.com. now when they are added it doesn't work as every request is coming as originated from the load balancer server. Im working on a setup ...
0
votes
0answers
62 views

Radicale on Apache/uWSGI - AH00111: Config variable ${_RADICALE_LOCATION_MATCH} is not defined

I'm running a homeserver with a vhost for a GNU Social instance, and I've been trying to set up Radicale CalDAV/CardDAV using the recommended guidelines for uWSGI: https://salsa.debian.org/debian/...
0
votes
1answer
26 views

How to view the vhost associated with an apache process

Using the "top" command (or a similar command) in Linux, is there anyway to show the vhost that an apache process is associated with in /var/www/html? I have 250 websites on a linux server, ...
1
vote
1answer
63 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 ...
0
votes
0answers
18 views

Apache try for domain in multiple dynamic vhosts

Allright, I have this for my vhost config NameVirtualHost *:80 <Macro Directory $dir> <Directory "/home/*/domeenid/*"> Require all granted Options ...
0
votes
1answer
117 views

How to show index.htm correctly like original index.html in Apache 2.4?

I am using Windows Server 2016, Apache httpd 2.4. I need upload static web content, start point is index.htm , not index.html . host file 127.0.0.1 help.numbooks.com My error It show directory ...
0
votes
0answers
34 views

Python/Django site in a subfolder on an Apache vhost: 404 not found

I have an Apache vhost for my domain, serving static and PHP files successfully for the past years. Recently I deployed a Python/Django API on the same vhost, in a subfolder of my existing website. ...
0
votes
0answers
36 views

Apache conf Ignore Wp-admin directory

I have a apache configure file with bitnami on Google cloud. I added a rule to redirect from an non-www aka example.com to www.example.com. However I would like to make a exception in the rule that /...
0
votes
0answers
22 views

Browser not rendering css and JS and images

0 I'm using: Ubuntu 16.04. Apache 2.4 php73-php-fpm on my dev server. I managed to get it so I can specify a handler and it will put that vhost on the correct PHP version, however CSS and JS seem to ...
-1
votes
1answer
25 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 ...
0
votes
0answers
267 views

Trying to force Apache to use only TLSv1.3 on a vhost, but it refuses to disable TLSv1.2

I have a test vhost on my web server for which I'm trying to enforce TLSv1.3-only but Apache refuses to disable TLSv1.2. TLSv1.3 does work however the following validation services all show that ...

1
2 3 4 5
54