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

Issue with nginx mod_rewrite caught Error 500

I've an issue with mod_rewrite I knew that nginx are not able to read .htaccess so I've tried to implement .htaccess from apache2 to nginx virtual host like this rewriterule to my nginx virtual host ...
0
votes
0answers
9 views

Virtual hosts config in Apache

I've configured and enabled v-hosts (by uncommenting #Include conf/extra/httpd-vhosts.conf line in httpd.conf). To my surprise this seems to disabled the ServerName directive in the main httpd.conf ...
0
votes
0answers
8 views

Apache and Virtual host returning NOT FOUND

In apache httpd.conf I changed #Include conf/extra/httpd-vhosts.conf to Include conf/extra/httpd-vhosts.conf. Then, in httpd-vhosts.conf I add this <VirtualHost *:80> DocumentRoot "...
0
votes
0answers
13 views

override NGINX location block

Would love some help with an problem that has me stumped. I am testing a hosting platform, Runcloud, to host a Nextcloud server. It uses an Apache/Nginx proxy setup and has a number of configuration ...
0
votes
1answer
70 views

Apache reverse proxy to nodejs server on CentOS 7 (WHM)

I'm trying to setup my site on the server. I've uploaded it and it's currently running on the server but the problem comes when I try to setup a reverse proxy on the domain so that I can access the ...
0
votes
1answer
59 views

AH00898: Error during SSL Handshake with remote server (localhost)

I am trying to boot up an instance of GhostCMS on my Debian 10 (buster) server. I planned on doing so using an apache (v2.4.38) reverse proxy. For the Ghost setup I used ghost-cli as described in the ...
0
votes
0answers
63 views

how do I use index.php as index document? [closed]

I have installed ISPConfig 3.1 on ubuntu 18.04 using following articles http://dalaris.com/install-and-configure-ispconfig-3-1-on-ubuntu-18-04/ using Hostname as domain.com And created new Sites ...
0
votes
1answer
21 views

Apache2.4 Raspbian cannot acces VirtualHosts with ServerName, only port number

It isn't critical that I get this working with a named host locally, as the main thing I needed was external network access (which I have already set up with port forwarding), but I'd still like to ...
0
votes
0answers
24 views

Apache vhost loads incorrect document root

I setup Name-based virtual hosts, where 03 domains are hosted, my problem is when I request any page from any domain then it tries to serve it from the main host ip(15.x.x.x). |- 15.x.x.x ...
0
votes
2answers
33 views

Recursive chmod of all vhosts httpdocs directories on CentOS/Plesk [closed]

A shared web hosting server running CentOS 7.8 with Plesk has the following directory structure for a few hundred vhosts: /var/www/vhosts/domain1.com/httpdocs/ /var/www/vhosts/domain2.com/httpdocs/ /...
0
votes
1answer
15 views

Wild card subdomain of subdomain in apache 2.4

currently I have worked wildcard subdomain config like below: <VirtualHost *:80> ServerAlias *.domain ErrorLog /tmp/error.log CustomLog /tmp/access.log combined ...
1
vote
0answers
18 views

Apache not redirecting as expected

I have a virtual host set up on Apache 2.4 on Ubuntu server 18.04 The setup is made of a .conf file for port 80 that contains a redirect to https and a .conf for port 443 that contains all the ...
0
votes
0answers
21 views

How to load ssl_certificate based on requested $host [nginx virtual host]?

I have a long virtual server for my nginx server. It's going to be shared between multiple domains and changes on this file should be affected on all domains. Everything goes fine until I reached to ...
1
vote
1answer
24 views

Using apache proxypass to direct to different servers based on path

I have the following in my default site config: <VirtualHost *:80> ProxyPreserveHost On ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ ...
0
votes
1answer
29 views

What is the Apache Tomcat equivalent of virtualhost of Apache httpd?

In Apache httpd, if I want to link a web application with a domain name I create a virtualhost. In Apache Tomcat, if I want to link a web application, is there a equivalent method?
0
votes
0answers
47 views

Is it a good idea to move to fully virtual domain controllers?

We have 2 physical domain controllers in our server structure, they are old and I am looking to visualize them. Having done some reading online I haven't found any major issues with going running ...
0
votes
1answer
15 views

Ubuntu 14 Virtual host file not working with IP (e.g. 123.123.123.123/supervisor2)

I have a virtual host file /etc/apache2/sites-available/supervisor2.conf: <VirtualHost *:80> ServerAdmin myemail@test.com ServerName ??? DocumentRoot /var/www/supervisor/public_html <...
1
vote
1answer
14 views

use proxy or redirect to file if cookie is set and only for a subdirectory

I am currently trying to send the request either through a proxy or to a PHP file based on a cookie. The rule only apply to /api. This is what I have so far. It is part of my VirtualHost Config: ...
1
vote
1answer
22 views

Is there a way to dynamically add multiple serveralias to point to the same directory without restarting apache each time?

I am using a Ruby on Rails application and currently have it configured to run using Apache and a VirtualHost. However, the virtualhost configuration at the moment is only configured to support my ...
0
votes
2answers
37 views

ServerName and ServerAlias and do we need to flushdns after apply in vhost?

I have applied ServerName and ServerAlias in my vhost and from here it is mentioned that Servername is hostname and port that server used to identify itself while ServerAlias is the alternate names ...
1
vote
1answer
80 views

domain doesn't work without [.www]

So I set up an Apache Webserver. Apache is handling the requests and guides them to the web framework flask. And i bought a domain and configured it with an A Record to my Server Ip. And now whenever ...
0
votes
1answer
84 views

Nginx VirtualHosts with Subdomains always directs to primary domain

I have two sites running as below. Server : nginx/1.14.2 / Debian 10 primary site mydomain.com in /var/www/mydomain directory sub site blog.mydomain.com in /var/www/blog` directory See DNS entries. ...
0
votes
1answer
37 views

Where does RewriteCond %{HTTP_HOST} refer to?

I keep seeing website redirection have something like below: RewriteCond %{HTTP_HOST} But where does the HTTP_HOST refer to? Is it referring to the configuration in some files or the CNAME or ...
0
votes
1answer
72 views

UseCanonicalName On applied however host of request header still wasn't change

I had an issue with website redirection and I found that my rewritecond input= 'www.example.com' and my request header host = 'example.com'. So I try to apply UseCanonimalName On in vhost where my ...
0
votes
0answers
17 views

Can Apache2.4 match a url to a directory with name-based virtual hosting? [duplicate]

How can Apache2.4 be configured to automaticaly match a url to an identical directory using name-based virtual hosting? By automatic, I mean not having to edit apache2.conf and restart. # default ...
0
votes
1answer
40 views

Apache2 not working with several subdomains (only one) on Ubuntu 19.04 (Virtual Hosts)

so I have a problem with Apache 2 (2.4.38) virtual hosts. I have set up two of them successfully, one for my actual domain (i. e. example.com) and one for a subdomain (blog.example.com). I then tried ...
-1
votes
2answers
52 views

Apache redirect with HSTS

I need to redirect all for example.com to https://www.example.com with HSTS turned on. How to do it? I got configuration in vhost80 and vhost443. What to fix in this code: in vhost 80 RewriteCond %{...
0
votes
1answer
19 views

Apache redirect to wrong Vhost while redirecting to https

Problem Accessing studentmossa.domain.comresults in a redirect to server.domain.com. Short valuable information I am running Fedora 31 (kernel 5.5.15-200.fc31.x86_64) with Apache/2.4.43 (Fedora). ...
1
vote
0answers
11 views

Apache2.4 strange ServerAlias wildcard behavior

I'm trying to create wildcard virtualhosts with ServerAliases sub.*.tld sub.*.tld2 *.tld *.tld2 (loaded in that order), the ones without the subdomain obviously work, but the first two do not, ...
0
votes
1answer
128 views

Relationship of ServerName, ServerAlias, host.file and how to define them in httpd-vhosts.conf

I wonder what is the relationship of ServerName & ServerAlias with host.file. As I know ServerName sets the hostname and port that the server uses to identify itself and ServerAlias is the ...
0
votes
0answers
24 views

Virtual host configuration doesn't work

I have a website on my server and I'm using it's address for a testing website. Both works. I installed jitsi-meet and trying to access it at meet.mydomain.tld but it redirects (301) to the server ip. ...
0
votes
0answers
18 views

My server does not respond

I would like to have an address for my website like this : meteo.xyz.com I own the domain xyz.com I redirected the traffic from my domain to the digital ocean dns in my domain name provider : meteo ...
0
votes
0answers
23 views

Matching not working as expected in Name-based Virtual Host in Apache

When I run httpd -S, it outputs the following: VirtualHost configuration: *:443 is a NameVirtualHost default server www.example.com (/etc/httpd/conf.d/ssl.conf:57) ...
0
votes
0answers
169 views

www+https redirection does not work even though redirection has been added in .htaccess file [duplicate]

I'm currently doing www+https redirection where I hope that my website able to redirect from http://example.com to https://www.example.com but it does not work even I have added redirection in ....
0
votes
1answer
52 views

Apache HTTP Server 2.4.41 is confusingly serving virtual host pages

My httpd-vhosts.conf looks like this: <VirtualHost *:80> DocumentRoot "C:/Apache24/htdocs/rodde.net" ServerName rodde.net ServerAlias www.rodde.net </VirtualHost> <...
0
votes
1answer
61 views

Apache “<VirtualHost> was not closed” error - despite it clearly being closed

I am having a really annoying issue where my newly created Apache Vhost is causing config error. I initially use cp command to copy existing and working vhost and just changed the DocumentRoot. Apache ...
0
votes
0answers
7 views

Apache2 (on Ubuntu 16.04) - when defining multiple VirtualHost error logs are missing

I defined two VirtualHosts for Apache2 - one on port 80 and the other on port 5000. For each I defined a different ErrorLog file, app1.log and app2.log. Both relevant sections look like below. <...
0
votes
1answer
62 views

How to remove bloat from my logs automatically

I was going over logs on a server with multiple vhosts/accounts, trying to figure which ones to delete because it is late in the month and an automated backup failed (I use Apache and/or Nginx). I ...
0
votes
0answers
17 views

nginx - two Symfony (3 and 4) apps in different locations (first for root and specific path, second for everything else)

I'm looking for some help with nginx vhost configuration. I need to configure two applications within one vhost (same domain, different paths): A) PHP 7.1 / Symfony3 / index = app.php B) PHP 7.2 / ...
0
votes
0answers
17 views

Apache - typing without www on my domain does not work

When i typed: example.com , my site works, but when i typed www.example.com or http://example.com it does not work, it give me This site can’t be reached. This is my Apache Configuration. <...
0
votes
1answer
60 views

Cannot access virtual hosts directory after configure apache

My virtual hosts have this configuration file: <VirtualHost *:80> ServerAdmin klebermo@gmail.com DocumentRoot /home/kleber/www/kleber ServerName klebermota.eti.br ...
0
votes
0answers
12 views

Location + BasicAuth + Fallback not working together

I have the following configuration that should accomplish the following: Any resource under the location /app should apply, so /app/index.html, /app/resource/img.gif, etc. Any resource under the ...
0
votes
2answers
33 views

Redirect Apache to a different service in subfolder

I have a CentOS 6.9 server that is running a DokuWiki under Apache/HTTPD 2.2. This wiki is installed in /var/www/html/dokuwiki. Therefore, when you type myserver.com/dokuwiki, it enters the wiki. If ...
0
votes
0answers
11 views

Apache vHost Restrict Access to All Subdirectories Except

I would like to use vHost to restrict access to all sub-directories except one. Folder structure example: - /var/www/html |- index.php |- file.php |- /var/www/html/dir1 |- ... |- /var/www/html/dir2/...
0
votes
0answers
19 views

Nginx root/location combination

I've this configuration: server { server_name my.project.com; index index.php; root /project/api/v1.0; location /api/v1.0/ { try_files $uri /index.php$is_args$args; } ...
0
votes
0answers
24 views

Nginx Block Issue: All sites redirect to default site

I had an Nginx server running serving a single site, now I have setup Nginx to use blocks so I can serve multiple sites. The issue is that all sites redirect to the default site. I have the two site ...
0
votes
0answers
52 views

Does the TLS Cert need to match SNI (server_name)/Host header?

The apache webserver uses Server Name Indication (SNI) to determine the virtual host (vhost) and with that the Transport Layer Security (TLS) certificate to respond to the TLS handshake. Is the ...
0
votes
0answers
18 views

Need to Pass Environment Variables Through Apache Proxy

BACKEND: I have Tomcat connected to Apache and JKMount'ed to webapps.demo.example.com. FRONTEND: The primary VirtualHost is setup for demo.example.com. I have one application Proxy'd to BACKEND. ...
1
vote
1answer
39 views

Apache2 wildcard alias

I have the following wildcard vHost: <VirtualHost *:80> ServerAdmin hostmaster@example.de ServerName autodiscover.*.* ServerAlias autoconfig.*.* RewriteEngine On ...
0
votes
2answers
26 views

Apache SSL vhost won't use DocumentRoot but rather uses server webroot

I have an apache config using a DV wildcard cert. The ssl.conf is configured to use the certificate for all server traffic. My vhost conf file has two virtual hosts defined there. A production vhost ...

1
2 3 4 5
52