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

Must a separate virtual host be made for mail subdomains?

I was following this guide which directed me here to get SSL certificates with Let's Encrypt. I successfully added one for my example.com main domain. I realized that my mail.example.com subdomain ...
-1
votes
0answers
25 views

Restrict web direct IP access / DDNS access

My question is mainly based on this previous question. I host multiple websites at home on a Debian 10 server using Apache webserver application. I use DDNS so all of my domains are CNAME pointing to ...
1
vote
2answers
27 views

New virtual host on apache returns the default vhost, other times returns the normal content

I'm having some really strange behaviour on one of my Debian servers. When requesting stuff.com ( example ) or stuff.com/image.jpg, let's say 50% of the times I have the correct response, the other 50%...
-4
votes
0answers
18 views

VM Attacking within Virtual box

This might be a rookie question, but I want to start attacking another virtual machine within my virtual box. what are the setting I should impose to do this?
1
vote
0answers
38 views

Redirect Permanent in Virtual Host apache configuration behaving not as expected

I have multiple domains pointing to the same IP. RedirectPermanent works fine for all domains IF and only IF the pages are NOT existing, and I get the 404 default page of my website. If I type in the ...
0
votes
1answer
68 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, ...
0
votes
0answers
19 views

Error 404 when accessing a file via Alias in directory outside of docroot

Pls help me I've spent enough hours on this with no great result.. I have the following config in my /etc/httpd/conf.d/20-myweb-443.conf : <VirtualHost *:443> ServerName example.com ## ...
0
votes
1answer
35 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 ...
0
votes
1answer
21 views

Apache to serve both static file and webapp

I have apache running on below reverse proxy config to serve java webapp content <VirtualHost *:80> SSLProxyEngine on ProxyPreserveHost On ProxyRequests Off ServerName www.example.com ...
1
vote
2answers
36 views

How does Apache choose which certificate to use?

Currently Apache is hosting several sub domains with host certificates generated with certbot and a http challenge. Now I want to setup a default virtual ssl host to redirect non-existing subdomains ...
1
vote
0answers
11 views

Apache randomly quits serving vhosts [closed]

I'm running Apache 2.4 on a Raspberry Pi 3 B+. I have two main vhosts, one for a direct IP access and one for everything else. Generally the server and routing works fine. Randomly the server will ...
0
votes
0answers
46 views

Wildcard ServerAlias not using SSL of main domain

I am trying to achieve this >> *.com.mydomain.com has an SSL Certificate from LetsEncrypt I want *.net.mydomain.com and 1000+ TLD (top level domain) to use *.com.mydomain.com certificate ...
0
votes
0answers
63 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 ...
0
votes
1answer
28 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 ...
2
votes
1answer
35 views

How to create redirection from two domains in one VirtualHost directive in Apache?

I want users visiting either of napiwki.kontestacja.com and napiwek.kontestacja.com to be redirected to the same address. I'm using the following fragment in httpd.conf: <VirtualHost *> ...
2
votes
2answers
57 views

How does SAN provides block access to data?

I was reading about file storage and that lead me to SAN. I read about SAN and that it provides block access to data. I was looking for these concepts in some video, where the guy creates a VM on some ...
0
votes
0answers
20 views

Domain shows wrong site in nginx, but only for HTTP

I have multiple sites configured in Nginx 1.14.2-2+deb10u3 on Debian 10. One is a.mydomain.com, another one is b.mydomain.com. Both domains have two server blocks each, for port 80 and for port 443. ...
0
votes
2answers
37 views

apache2 - How to allow unencrypted access only to local network?

I have a Linux server on my local network with a few services running. I want to be able to access that server by my domain's name with encryption, but leaving LAN access free. I tried searching for ...
0
votes
0answers
22 views

How to create custom access logs from Apache/httpd on server

I have a server that runs on apache. To track users' access to specific objects I'm trying to modify the server logs and keep them formatted so that I can have a brief analysis with them. But ...
0
votes
0answers
78 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, ...
0
votes
2answers
39 views

Apache crash if I try to use ProxyPass on localhost to expose different services as subdomain

I have the following directory structure for multiple websites and services /var/www/html/site1 /var/www/html/site2 /var/www/html/site3 /var/www/html/serv1 /var/www/html/serv2 site1 folder hosts a ...
3
votes
1answer
48 views

Apache shows general root index rather than DocumentRoot index configured with Virtual Host in Debian

I have multiple websites supposed to run each with its own domain (e.g. site1.com, differentsite2.com, othersite3.com etc.). The operative directories of each website are dedicated subfolder in /var/...
0
votes
1answer
36 views

nginx and wordpress - site2.com need to load content of of site1.com/site2 without url change

I have 1st domain name site1.com - self-hosted wordpress and contains posts and pages. (everything good, no issue at all) I have 2nd domain name site2.com - nothing hosted (dns pointing to same server ...
2
votes
1answer
47 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-...
0
votes
1answer
106 views

apache 2.4 config to allow ELB health check

I have an EC2 instance behind an AWS Application Load Balancer, running apache 2.4 The health check is configured to do a GET on /health/ I have virtual hosts configured, and two vhost entries - one ...
0
votes
0answers
23 views

Apache VirtualHost redirection issue - redirects to default

I'm having trouble with my apache config. Several sites are hosted on the server, each connected to a domain. Here's an excerpt from the config: <VirtualHost *:80> ServerName [name].com ...
0
votes
0answers
12 views

Can I duplicate .user.ini functionality using virtual hosts? “auto_prepend_file” not supported in virtual hosts with PHP FPM

I'm moving from PHP 5.2 and Apache 2.2 with mod_php to Apache 2.4 and PHP 8 with PHP FPM. I was using auto_prepend_file and auto_append_file in virtual hosts to implement Memcached in certain ...
0
votes
2answers
51 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-...
0
votes
0answers
44 views

How to prevent access to my website by IP?

I read in other similar questions that I cannot prevent access by IP. I have an apache server that serves several Virtual Hosts, but unfortunately every time I access by IP it redirects me to the ...
1
vote
0answers
42 views

Certificate warning before URL Rewrite for Second domain in Apache 2.4

I am receiving certificate warning on browser before redirecting second domain to page of first primary site domain. Redirect is working after If clicked on Advanced. Same happening with chrome and ...
0
votes
1answer
51 views

Ngnix Closes The Connection Doesn't Return 301

struggling to get my hosts to work on port 80/HTTP and redirect to HTTPS. Discovered this when I gave out a URL and they said it didn't work but noticed a direct link to the site did work. I've done ...
0
votes
1answer
108 views

Migrate vhosts from Apache to OpenLiteSpeed

I was under the impression from reading the LiteSpeed web server doc, that LiteSpeed was using the same syntax for vhosts config than Apache ones, thus the migration was easy. However, after ...
0
votes
0answers
80 views

error : virPidFileAcquirePath:422 : Failed to acquire pid file '/run/user/1000/libvirt/libvirtd.pid': Resource temporarily unavailable

Anyone have any ideas how to fix this? It looks like the computer is telling me libvirt has no VM to connect to. I could be off the mark there. I am starting to play with vitrd. I am thinking of ...
0
votes
1answer
151 views

Nginx how avoid location for subfolders?

I have several subfolders in a project in which of them I have a index.html files. I prefer to call the index.html something like "gallery.html" I tried location gallery { index gallery....
1
vote
1answer
31 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 ...
0
votes
1answer
74 views

Redirect subdomain to different IP/folder

I was trying to redirect a subdomain ie billings.example.net to 1.2.3.4/billing. Well, from my experience I could access the 1.2.3.4 server and create a vhost pointing that the incoming of billings....
1
vote
1answer
93 views

nginx serving wrong certificate for vitual hosts with own conf file

I've got a few virtual hosts set up through nginx on my centos7 server. I'm getting certs by using letsencrypt certbot. By default certbot writes the vhost info to the /etc/nginx/nginx.conf file. This ...
1
vote
1answer
32 views

How to add multiple path on same port VirtualHost

I want to add multiple paths like "localhost:8080/phpmyadmin" and "localhost:8080/index.php" but it doesn't want to work I create a phpmyadmin.conf in conf-availables with # ...
0
votes
2answers
71 views

Why does Apache return a 400 “bad request” error when connecting to it with “openssl s_client” even though it sends TLS SNI

I have a website, accessible with HTTP over TLS. It is multi-homed, so there are several A DNS entries for the hostname. Additionally, there are several websites, with several hostnames, on the same ...
1
vote
0answers
28 views

NGINX won't load CSS files randomly

I recently moved from apache2 to nginx. Everything works fine but sometimes (only like 2% of the time), loading will be pretty slow for like 5-10 sec and then the html will load but the css won't. It'...
0
votes
1answer
54 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 ...
0
votes
0answers
67 views

Apache works for IP but not for domain

I've been running an apache server pretty smoothly for a while now by just using my web accessible IP address (xx.xx.xx.xx) in the apache virtual host setting as follows: <VirtualHost *:80> ...
0
votes
1answer
27 views

If hosting only one site on a server with no control panel, is there any advantage to using a virtual host?

The site is hosted on AWS and the website is dropped into the var www html directory. Is there any advantage to setting up a virtual host considering this will be the only domain on the server?
0
votes
0answers
43 views

How to serve PHP on Nginx on a Query Parameter ?amp=1?

I have few virtual hosts (sites) running on this single server. Right now, on this root virtualhost i have a forum (running on Docker) but served by Nginx mysite.com and I have its AMP pages being ...
0
votes
1answer
919 views

Apache2 main domain redirecting to sub-domain when port is used on main domain

All of my http > https redirects are working perfectly fine. I have setup a separate sub-domain and port to use with PHPMyAdmin to access a MySQL DB so it is less likely to get be scanned by bots ...
0
votes
0answers
34 views

PHP settings in apache2 config file completely ignored

On a fresh Debian 9 install, I installed PHP 7.2 and Apache2. php has been installed from the Sury repo with these extensions: php7.2-mysql php7.2-dom php7.2-simplexml php7.2-ssh2 php7.2-xml php7.2-...
1
vote
1answer
49 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 ...
0
votes
0answers
48 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 &...
0
votes
1answer
53 views

Redirecting subdomains - only first subdomain works

I have two domains running on Apache 2.2 for Windows. Domain 2 has both secure and non-secure access and works fine. Domain 1 has the domain and four subdomains. The subdomains redirect to ports on ...
0
votes
1answer
34 views

Apache virtual hosts not working as expected - my website is redirected to the default virtual host

I'm configuring a new server (droplet) with Ubuntu 18.04.1 LTS. I installed apache and configured virtual hosts. The server name is www.speedysoftware.com and this is the value of /etc/hostname. The ...

1
2 3 4 5
53