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
21 views

Is it possible to create or have our own DNS of our virtual server in Virtualmin to configure our domain name with our registrar Namecheap?

We are using an Ubuntu 18.04 LTS DigitalOcean Droplet on which we have installed "Webmin/Virtualmin". I also have a Domain Name whose registrar is "Namecheap". The problem is that ...
0
votes
0answers
32 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....
-1
votes
0answers
17 views

pointing sub domain to AWS EC2 server, website not displaying

The main domain is pointed on other AWS EC2 instance and due to the subdomain is a staging site so I launch another AWS EC2 instance, installed Apache, added the subdomain vhost to default .conf at /...
0
votes
0answers
29 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
51 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
15 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
102 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
56 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
102 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
51 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
29 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
84 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
17 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
56 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
25 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
67 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
243 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
76 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
40 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
39 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
18 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
118 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
37 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
27 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
63 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
37 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
43 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
37 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
44 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
607 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
46 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
24 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
57 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
17 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
57 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
28 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
35 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
18 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
199 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 ...
0
votes
0answers
40 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 ...
0
votes
1answer
53 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 ...
0
votes
1answer
77 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: &...
0
votes
1answer
93 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 ...
1
vote
0answers
12 views

AWS + Route53 + CWP7 + Sub/Addon Domain Nameserver Error

I am trying to configure the CentOS CWP 7 Control Panel in the same method I used to handle cPanel WHM in the olden days, but I'm running into trouble. The problem is: How do I configure CWP & ...
1
vote
0answers
105 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 ...
0
votes
1answer
59 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 ...
1
vote
1answer
84 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 ...

1
2 3 4 5
54