Apache2 constantly mixes up vhosts Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience Should we burninate the [wrap] tag? The Ask Question Wizard is Live!apache server keeps crashing on ubunutu, ssl: caught SIGTERM, shutting downApache2 dynamic vhostapache2 vhost going to wrong webrootApache2: 'AH01630: client denied by server configuration'Error setting up multiple vhosts with Apache2 on Mint 15Browser error ssl_error_rx_record_too_long (Firefox) and ERR_SSL_PROTOCOL_ERROR (Chrome)Apache VirtualHost running but page cannot be displayedMAMP vhost: “The requested URL / was not found on this server.”Virtual Host in XAMPPApache Server Always Directs to Default VirtualHost

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

Book where humans were engineered with genes from animal species to survive hostile planets

Single word antonym of "flightless"

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

Can I cast Passwall to drop an enemy into a 20-foot pit?

How discoverable are IPv6 addresses and AAAA names by potential attackers?

Why did the rest of the Eastern Bloc not invade Yugoslavia?

Generate an RGB colour grid

Abandoning the Ordinary World

Bete Noir -- no dairy

Coloring maths inside a tcolorbox

Why are there no cargo aircraft with "flying wing" design?

Output the ŋarâþ crîþ alphabet song without using (m)any letters

When do you get frequent flier miles - when you buy, or when you fly?

How come Sam didn't become Lord of Horn Hill?

What does the "x" in "x86" represent?

Should I discuss the type of campaign with my players?

What are the pros and cons of Aerospike nosecones?

How do I stop a creek from eroding my steep embankment?

English words in a non-english sci-fi novel

The logistics of corpse disposal

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Can a non-EU citizen traveling with me come with me through the EU passport line?

Error "illegal generic type for instanceof" when using local classes



Apache2 constantly mixes up vhosts



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
Should we burninate the [wrap] tag?
The Ask Question Wizard is Live!apache server keeps crashing on ubunutu, ssl: caught SIGTERM, shutting downApache2 dynamic vhostapache2 vhost going to wrong webrootApache2: 'AH01630: client denied by server configuration'Error setting up multiple vhosts with Apache2 on Mint 15Browser error ssl_error_rx_record_too_long (Firefox) and ERR_SSL_PROTOCOL_ERROR (Chrome)Apache VirtualHost running but page cannot be displayedMAMP vhost: “The requested URL / was not found on this server.”Virtual Host in XAMPPApache Server Always Directs to Default VirtualHost



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have two projects setup like below. (Running Apache2.4 on Ubuntu 18.04 LTS)



Confs:



<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName local.project1
ServerAlias local.project1
DocumentRoot /var/www/html/project1
<Directory "/var/www/html/project1">
AllowOverride All
Allow from all
Require all granted
</Directory>
</VirtualHost>


Both have the exact same conf files, just change project1 for project2. They're both Drupal 8 (if that makes any difference)



My host file:



127.0.0.1 localhost
127.0.0.1 local.project2
127.0.0.1 local.project1


Whenever I go to local.project2 it takes me to local.project1 (never the other way around and never working as it should).



What am I doing wrong?



Update: i have disabled project1 (a2dissite) and commented it out from the hosts file and the browser (when viewing http://local.project2) still takes me into project1's folder.



Update 2: This only happens on Firefox, it works perfectly fine Chrome










share|improve this question






























    0















    I have two projects setup like below. (Running Apache2.4 on Ubuntu 18.04 LTS)



    Confs:



    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName local.project1
    ServerAlias local.project1
    DocumentRoot /var/www/html/project1
    <Directory "/var/www/html/project1">
    AllowOverride All
    Allow from all
    Require all granted
    </Directory>
    </VirtualHost>


    Both have the exact same conf files, just change project1 for project2. They're both Drupal 8 (if that makes any difference)



    My host file:



    127.0.0.1 localhost
    127.0.0.1 local.project2
    127.0.0.1 local.project1


    Whenever I go to local.project2 it takes me to local.project1 (never the other way around and never working as it should).



    What am I doing wrong?



    Update: i have disabled project1 (a2dissite) and commented it out from the hosts file and the browser (when viewing http://local.project2) still takes me into project1's folder.



    Update 2: This only happens on Firefox, it works perfectly fine Chrome










    share|improve this question


























      0












      0








      0








      I have two projects setup like below. (Running Apache2.4 on Ubuntu 18.04 LTS)



      Confs:



      <VirtualHost *:80>
      ServerAdmin webmaster@localhost
      ServerName local.project1
      ServerAlias local.project1
      DocumentRoot /var/www/html/project1
      <Directory "/var/www/html/project1">
      AllowOverride All
      Allow from all
      Require all granted
      </Directory>
      </VirtualHost>


      Both have the exact same conf files, just change project1 for project2. They're both Drupal 8 (if that makes any difference)



      My host file:



      127.0.0.1 localhost
      127.0.0.1 local.project2
      127.0.0.1 local.project1


      Whenever I go to local.project2 it takes me to local.project1 (never the other way around and never working as it should).



      What am I doing wrong?



      Update: i have disabled project1 (a2dissite) and commented it out from the hosts file and the browser (when viewing http://local.project2) still takes me into project1's folder.



      Update 2: This only happens on Firefox, it works perfectly fine Chrome










      share|improve this question
















      I have two projects setup like below. (Running Apache2.4 on Ubuntu 18.04 LTS)



      Confs:



      <VirtualHost *:80>
      ServerAdmin webmaster@localhost
      ServerName local.project1
      ServerAlias local.project1
      DocumentRoot /var/www/html/project1
      <Directory "/var/www/html/project1">
      AllowOverride All
      Allow from all
      Require all granted
      </Directory>
      </VirtualHost>


      Both have the exact same conf files, just change project1 for project2. They're both Drupal 8 (if that makes any difference)



      My host file:



      127.0.0.1 localhost
      127.0.0.1 local.project2
      127.0.0.1 local.project1


      Whenever I go to local.project2 it takes me to local.project1 (never the other way around and never working as it should).



      What am I doing wrong?



      Update: i have disabled project1 (a2dissite) and commented it out from the hosts file and the browser (when viewing http://local.project2) still takes me into project1's folder.



      Update 2: This only happens on Firefox, it works perfectly fine Chrome







      vhosts apache2.4






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 22 at 9:16







      lordZ3d

















      asked Mar 22 at 9:06









      lordZ3dlordZ3d

      11110




      11110






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296161%2fapache2-constantly-mixes-up-vhosts%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55296161%2fapache2-constantly-mixes-up-vhosts%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript