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
-2
votes
0answers
8 views

Como configurar vhost no windows com o xampp usando uma porta diferente da 80?

Meu arquivo httpd.conf já está com estas configurações: LoadModule vhost_alias_module modules/mod_vhost_alias.so ServerName localhost:8080 Listen 8080 Include conf/extra/httpd-vhosts.conf Meu ...
0
votes
0answers
27 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
27 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
42 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
35 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 ...
-3
votes
0answers
38 views

Virtual servers on two different physical servers cannot ping each other [closed]

My HYPER-V virtual servers in a physical server (ADA) that I created new, cannot ping the virtual servers on another physical server (ADA2) I created in same location .The opposite is also valid . ...
1
vote
1answer
37 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
79 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
17 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
10 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
47 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
39 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
40 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
19 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
82 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
50 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
149 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
29 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
73 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
91 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
27 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
28 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
24 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
46 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
26 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
36 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
918 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
32 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
48 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
23 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
27 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 ...
0
votes
1answer
25 views

How to avoid the “Forbidden” error when changing the DocumentRoot in the default virtual host file on Ubuntu Apache?

I have Apache installed on an Ubuntu virtual machine. Typing http://localhost in the browser brings up the Apache intro site, so I know Apache works. I created the file /home/test/webs/testapp/index....
0
votes
1answer
28 views

How to get Apache Virtual Host working on Ubuntu?

I have Apache installed on an Ubuntu virtual machine. Typing http://localhost in the browser brings up the Apache intro site, so I know Apache works. I created the file /home/test/webs/testapp/index....
0
votes
0answers
29 views

Apache Config - weird behavior for port and/or virtualhost

I'm currently testing out deploying multiple site from a single server with a single IP with the help of virtualmin/webmn. Nameservers and some common A/AAAA records already configured in DNS manager. ...
-3
votes
1answer
51 views

Best approach for hosting 100s of WordPress sites on VPS [closed]

I am looking to host 100s or maybe 1000s of isolated wordpress webistes (for development purpose) on a single VPS so what do you think will be the best approach to achieve this. It will all be done ...
0
votes
0answers
18 views

Apache2.2 for multiple virturalhost domains sharing the others locations path

for example: <VirtualHost *:80> DocumentRoot "/docs/dummy1.com" ServerName dummy1.com <Location /one/auth/manageprofile> </Location> </VirtualHost> &...
0
votes
0answers
28 views

How to modernize apache conf virtualhost files

So I have some old Apache confs for virtualhosts that I have not updated for awhile, and I would like to review them and modernize them if needed. But I'm not quite sure where to begin or what is the ...
0
votes
0answers
14 views

How to config virtualhost for multiple html files of react

I am developing react app with single sign on. For auth redirection, I used another html file (auth.html) besides default index.html. And I config rewrite engine of virtual host like this. <...
0
votes
1answer
42 views

Virtual Host Setup Redirecting Request to Local IP address

I want to make an application running on apache2 (ubuntu) available over the internet. So i decided to setup virtual host after purchasing a SSL certificate. Everything works fine on my Local network. ...
0
votes
1answer
64 views

Apache Conditional Reverse Proxy with RewriteCond

I have a website that has a mobile version page, and since my website is behind the reverse proxy, I need a conditional function that can decide which version to be shown to visitors. I'm using Apache ...
1
vote
1answer
44 views

Apache Virtual host alias: internal rewrite pages not working

I have this configuration for my site.com <VirtualHost *:443> ServerAdmin webmaster@site.com ServerName site.com ServerAlias www.site.com DocumentRoot /websites/site.com ...
0
votes
1answer
41 views

Problems with improper vhosts configuration on Apache 2 / Ubuntu 14.04

I have various subdomains set up successfully as virtual hosts on my Digital Ocean Droplet. For some reason though, my latest subdomain is serving a different subdomain, and I'm not sure why. So if ...
0
votes
0answers
41 views

What step am I missing to effectively update a DocumentRoot?

I am working on a new VPS, and I've copied over software from the development server to display at a subdomain. At present, at least apart from tinkering with /var/www/html, I have not managed to get ...
0
votes
1answer
48 views

Multiple Wordpress sites on a single droplet / Virtual Host / One site is working, second gives white screen of death. Why? - Digital Ocean

This is not duplicated Post! System information: LAMP installed on Ubuntu 18.04 I have two WordPress websites on Digital Ocean droplet, let's say domain1 and domain2. I set up 2 virtual hosts. My ...
0
votes
1answer
39 views

Is there a method to check the given document root directory exists in Apache2 virtual host?

I want to check the root directory exists or not in Apache2 virtual host. If it doesn't exist I want to point the virtual host to a default directory. Is it possible?
0
votes
2answers
137 views

Best method for setting few SSL domains with redirects

I wonder what is "best" and recommended method of setting up SSL domains on single IP, where there are redirects from :80 to :443. This was not entirely covered here, because I need those ...
0
votes
0answers
15 views

Is it possible to dynamically set the PHP FPM user from withing Apache virtual host block?

I'm hosting a couple of different php development projects and I'd like to partition them from each other by having them run as separate users. I've found I can achieve this with PHP FPM by ...
1
vote
1answer
85 views

Rewrite Rule from .htaccess into Apache VirtualHost

I have the following .htaccess file: <IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On </IfModule> RewriteBase / RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:...

1
2 3 4 5
53