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.

learn more… | top users | synonyms (3)

0
votes
0answers
111 views

Dynamic Subdomain with htaccess unchanged URL

I have a Codeigniter project Located at "domain.com/users/abc" directory. I want to access it with Subdomain "abc.domain.com/" and also I don't want the url in the address bar to change. There will ...
0
votes
1answer
31 views

php using live server as oppose to local server despite virtual host settings

I had planned on migrating a website to another server, So having copied the code and database etc, and changed my hosts file on windows, everything worked almost as expected. I could load the site ...
0
votes
0answers
9 views

Adding sub-site to an apache server's main web site [duplicate]

I have a CentOS server running a bunch of services, some with web interfaces available as subfolders of the root site; eg: myhost/service1interface or myhost/service2interface I want to create my ...
1
vote
0answers
13 views

how to configure a default (or common) virtualhost for non-ssl domains when ssl domains exist? [duplicate]

I have several domains running on the same (physical) server under Apache 2.4 web server. Some of these domains support secure connections (over the standard HTTPS protocol). For them I configured ...
0
votes
2answers
70 views

Multiple Web Server VMs or a Single VM with virtual hosts?

I have a number of sites running on various physical servers that I'm looking at moving into our virtual environment. Most of these are small sites usually with a MySQL database. User base is ...
0
votes
0answers
15 views

apache2 point folder to subdomain

I need to point domain.com/chat to chat.domain.com. So, when I access domain.com/chat I want to see the same thing as when I access chat.domain.com. My virtualhost for this looks like below. As you ...
0
votes
1answer
33 views

Mapping Virtual Hosts by folder name in Apache

I am trying to add virtual hosts to my Apache, but I am trying to do it in a specific way of which I don't know if it is possible. I currently have it like this: <VirtualHost *:80> ...
0
votes
1answer
27 views

Apache fails after configuration of 2 virtual hosts

Apache does not restart after having changed the configuration. Error: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 File: ...
0
votes
0answers
79 views

nginx catchall reurns bad gate way with $host in proxy_pass

I am currently using the following virtual server proxy setup on my development environment the defined virtual servers work fine but i am coming up with a bad gateway error when i hit my catchall ...
0
votes
1answer
46 views

How to use 2 ports for same VirtualHost

I have an F5 URL portal.example.com which points to an Oracle HTTP Server(OHS) on specific port 85. I have below settings in custom file under moduleconf folder. NameVirtualHost *:85 <VirtualHost ...
0
votes
1answer
89 views

Apache using incorrect default virtual host

system: ubuntu 14.04 as a VPS, apache 2.4.7 I have several virtual hosts set up, listening to :80 and :443 ports. If I apache2ctl -S it shows incorrect virtual host as default on port 80. And ...
-2
votes
1answer
58 views

Apache server config: how can I disable the certificate/SSL handshake on the WWW version only? [duplicate]

Serving a apache website via https:// => how can I disable the certificate/SSL handshake on the WWW version only? Hi we use SSL on the https://www version of our website Now I would like to disable ...
0
votes
0answers
19 views

mod_jk mount is being bypassed by virtualhost rewrite rule

I have apache 2.4 and tomcat 5 configured with mod_jk. My webapp "dealernet" could be accessed without the port 8080 suffix directly at http://prefixa.mydomain.com/dealernet/login/login.do and life ...
0
votes
2answers
253 views

redirect permanent http to https

System: Ubuntu 14.04 , Apache 2.4.7 I want all requests to http://domain.com and https://domain.com be redirected to https://domain.com. I also want to redirect requests to the "www" subdomain to the ...
0
votes
1answer
95 views

virtualHost configuration for Apache 2.4 with tomcat 5.5

I currently have Apache 2.4 integrated with two tomcat servers in a load balancing configuration. The webserver will take requests from the DNS request for two domain names, http://domain1.nl and ...
-6
votes
2answers
204 views

Apache Virtual Hosts Wont Resolve

I have followed this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-6 I have a website in /var/www/html. I followed the guide and i have the main ...
1
vote
1answer
129 views

SSL VirtualHost not using DocumentRoot

I'm trying to set up a self-signed SSL certificate between my own VPS and Cloudflare (next to Full SSL). I'm using the following VirtualHosts for this: <VirtualHost *:80> ServerName ...
2
votes
2answers
118 views

How to set hostname if hosting multiple servers on the same machine?

I'm learning about setting up my own web and mail servers, and I've been confused about this question for days, and articles online (including Server Fault) seems to be so inconsistent with their use ...
0
votes
0answers
31 views

Combining a 301 and aliases in Apache VirtualHost blocks

I manage (just about) Apache and VirtualHosts for the server and am trying to determine the most efficient and SEO-friendly method for a client with: an old domain/dirs/ that needs a 301 to a new ...
0
votes
1answer
93 views

mod_rewrite in .htaccess and basic auth in vhost - access to paths

I want to lock down a website (made on Drupal) with basic auth. Drupal is using mod_rewrite in its .htaccess file. The problem I'm facing is this - my virtual host looks like this: <VirtualHost ...
0
votes
0answers
126 views

How to configure apache + php-cgi on CentOS?

I have a Cent OS 6.6 server with Apache + mod_php site (site1.local). I need to configure second site (site2.local) with php_cgi. So, I created a user, gave him permissions on www-folder, configured ...
-1
votes
1answer
42 views

Accessing virtual host from all computers on home network [closed]

I've set up an Apache server on a computer in my home network and enabled name-based virtual hosting. When I enter the URL of the virtual host on that computer in a browser the page is correctly ...
0
votes
0answers
150 views

Replace all URL's based on hostname using Apache 2.2

I am setting up local testing environments for my team. Each of us have our own subdomain that points to our machines on our internal network. In the code, the URL's are all written with the www ...
1
vote
3answers
55 views

ServerName with IPv6 with Apache

I'm basically trying to redirect every request on :443 to :443. I found this way to do that, which work pretty nicely, once the visitor discard the SSL alert (my certificate isn't valid for my IP, of ...
0
votes
0answers
42 views

How to create dynamic vhosts with dynamic root folder locations?

On my development machine I'd like to have one folder for all my projects and access each project with a subdomain that is named after the folder name. Most of the dynamic vhost tutorials I found for ...
0
votes
1answer
236 views

apache virtualhost redirection on ubuntu 14

I had set up 2 domain virtualhost files under /etc/apache2/sites-available, www.example.com.conf example.com.conf apart from the default configurations. I've been trying to create a redirection ...
0
votes
1answer
301 views

Arch-linux apache 404 mod_rewrite VirtualHost with url suffix

I have a problem with Apache on Arch-Linux. I assume it is related to mod_rewrite, but I am not sure. In the past I always worked with Debian-based systems. Arch seems a little different. I have a ...
0
votes
3answers
101 views

Redirect Naked Domain to SSL

I have a wildcard SSL certificate and I want to redirect all http requests to their equivalent https. My server is a Debian (wheezy) and I am running Apache 2.2.22 I have added the following at the ...
1
vote
0answers
41 views

Java hosting and e-mail server on VPS [closed]

I can't find a good tutorial for this, I looked at https://www.howtoforge.com/ but there is only a weak tutorial on how to setup JDK and Tomcat in a Linux environment. For me this isn't a problem, a ...
0
votes
1answer
47 views

nginx handle multiple locations for one server

I need to setup a virtual host to run my users.example.com website. It needs PHP support via php-fpm. The ideia is to have a mapping like this: users.example.com/~user1/folder/file.php -> ...
1
vote
1answer
94 views

Name based virtual hosts on specific IP address

The Apache Virtual Host documentation says : You can alternatively specify an explicit IP address in place of the * in <VirtualHost *:80> directives. For example, you might want to do this in ...
0
votes
0answers
164 views

Apache VirtualHost error: Invalid host name

It used to be pretty simple for me to set up a VirtualHost to test a new php webapp, for this http.conf: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /opt/webgrind/www ...
0
votes
1answer
38 views

Chain rewrites of Apache requests for VirtualHost to another server in same network

Here is basically what I would like to do: http request comes in, portforwarding in router sends it to a server in the local network (server A) the server identifies the request for a virtual host ...
0
votes
0answers
22 views

Restrict directory listing to specific IP and let full access to files

I would like to configure a virtual host to get directory listing possible on /dir/ only for 2 specific IPs, and return a 403 for other IPs. Besides, I want to let full read access to the files ...
0
votes
0answers
46 views

Mount all Nginx virtual hosts at subpathes of the default host

I have a Nginx setup with several virtual hosts (defined by server blocks for every linux home directory). To allow a preview for domains that currently do not have a DNS entry pointing to my host, ...
-2
votes
1answer
77 views

Unable to redirect port to main domain page on Ubuntu VPS

Basically, I have a Nodejs program running on port 4000 of my server and instead of the visitors having to type mydomain.com:4000 to access it, I'd like it to be displayed when they visit the normal ...
1
vote
2answers
24 views

Wildcard substituion in apache virtualhost file

I'm trying to set up a single apache virtualhost file that will route xyz.mycompany.com to /var/www/html/development/xyz/public Here is my hard-coded version. Is there a way to swap "xyz" with a ...
1
vote
1answer
577 views

Trying to install php-cgi / Apache / Ubuntu 14.04

I'm trying to use the "Php reverse shell" for school purposes on my clean installed Ubuntu 14.04. I configured my Apache/PHP/MySQL as I do normally. I need to get the php-function "pcntl_fork()" ...
2
votes
0answers
491 views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
0
votes
2answers
146 views

Serving Node.JS app on a existing server running page on port 80

I have a server at www.example.com running a PHP-made webpage served by Apache, this page is listening to port 80. Now I want to serve my Node.JS on the domain www.example2.com. Both pages should be ...
0
votes
0answers
26 views

Avoid unexisting subdomains to show main domain

I have a site example.com, and I made a subdomain test.example.com, both work just fine. The problem is that if someone now surfs to an unexisting subdomain like puppy.example.com he still gets to see ...
0
votes
1answer
140 views

Redirect subdomain to an Apache Virtual Host

I have a website "example.com" hosted on a provider that allows me to manage my own DNS. I want example.com to point to the provider's IP address but I want "subdomain.example.com" to point on my own ...
0
votes
0answers
73 views

Apache HTTPD accept requests different destination IP and HTTP Host header

We've built and brought up a new version of a web application. The legacy web application still exists and is still used by legacy clients. Now we want to migrate these old legacy clients to use the ...
0
votes
0answers
82 views

Apache virtual host and Flask broken Json response

I have develop a micro web app (with Flask) to retrieve a json data from a remote web server (virtual host apache + mod_wsgi). If I try to get data from a single remote istances (only flask web server ...
0
votes
1answer
24 views

SSL page only loading in private network

I have got a activated virtual hosts config for ssl like this: <VirtualHost vidanalysis.com:443> ServerName vidanalysis.com SSLEngine on SSLCertificateFile /etc/apache2/ssl/ssl.crt ...
1
vote
1answer
534 views

Excessive disk usage with virtfs / cpanel [closed]

I'm running a server using cPanel, with virtfs enabled, and seeing very high disk usage compared to the amount of data actually uploaded/created by each user. I am getting DISKWARN emails telling my ...
1
vote
0answers
24 views

Automatically add/remove entry to/from /etc/hosts when enabling/disabling apache2 virtualhost

When I create virtualhosts, I almost always forget to add an entry to /etc/hosts until I've attempted to check the site in a web browser and moaned about the oversight. What I want to do is modify ...
1
vote
3answers
251 views

Adding a domain and subdomain to server

Greetings and please excuse me if this is a very basic question. The problem: Currently I have bought a domain (crazywebsite.com) from Godaddy.com and I have an unmanaged VPS in Site5.com. I have ...
0
votes
0answers
37 views

Many webapps, one vps

Might be a noob question, Google and SF searches didn't turn up anything super useful. Could be using the wrong words here. I've got a vps, with one port 80 app running on it. I'd like to add two ...
0
votes
1answer
23 views

Wordpress Opening From Wrong Directory

I have an Amazon ec2 m3 medium instance running AMI(RedHat based) Linux. I am trying to host multiple domains on this instance by adding this at the end of httpd.conf: <VirtualHost *:80> ...