About 226,000 results
Open links in new tab
  1. linux - How can I automatically redirect HTTP to HTTPS on Apache ...

    Attention: I recommend using SERVER_NAME instead of HTTP_HOST in case you have more than one virtual host! Otherwise you rewrite with the IP and loose the query hostname. Spent a couple of …

  2. Apache default VirtualHost - Stack Overflow

    Apache says top is the location of default/wildcard vhost. The main problem people seem to have is that NOT specifying a default dummy ServerName for default server will cause Apache to detect it …

  3. How to run multiple sites on one apache instance

    Based on the rest of your question, what you really want to do is run various sites on the same server with their own domain names. The best documentation you'll find on the topic is the virtual host …

  4. Apache: Restrict access to specific source IP inside virtual host

    Oct 31, 2013 · I have several named virtual hosts on the same apache server, for one of the virtual host I need to ensure only a specific set of IP addresses are allowed to access. Please suggest the best …

  5. Set up Apache virtualhost on Windows - Stack Overflow

    How can I set up virtualhost for multiple domain name on Windows? I will use it for my own test projects. I have three projects that I need to set up and at the moment I'm using xampplite for the

  6. Apache VirtualHost, multiple ServerName in one line

    May 19, 2022 · I am using the following tag <VirtualHost *:80 *:443> ServerName blog.mydomain.com ServerAlias blog to create a virtual host. I've put the ServerName as my …

  7. How to debug an apache virtual host configuration?

    Mar 29, 2011 · 28 If you are trying to debug your virtual host configuration, you may find the Apache -S command line switch useful. That is, type the following command: httpd -S This command will dump …

  8. Apache VirtualHost and localhost - Stack Overflow

    Jun 11, 2012 · Main host goes away If you are adding virtual hosts to an existing web server, you must also create a block for the existing host. The ServerName and DocumentRoot included in this virtual …

  9. Apache redirect to another port - Stack Overflow

    0 Apache supports name based and IP based virtual hosts. It looks like you are using both, which is probably not what you need. I think you're actually trying to set up name-based virtual hosting, and …

  10. VirtualHost always returns default host with Apache on Ubuntu 14.04

    May 17, 2014 · Usually apache2 on Ubuntu has a virtual host setup for the default site, i.e. when apache can't find a more specific domain (TLD) attached to another virtual host. The command a2dissite …