d8 WAMP Virtual Host works, but links are wrong?
Posted by: BullseyeWins (---.hfc.comcastbusiness.net)
Date: October 14, 2016 05:48PM

I have the virtual host "mostly" working on my local machine for www.ustenniscourts.smurm.

The domain works, but some links point to www.ustenniscourts.smurm/correctlink and others to www.ustenniscourts.smurm/drupal8/incorrectlink (with the drupal8 folder in the url)

even on the same page like Appearance

You can place blocks for each theme on the block "layout page". (has the unwnated /drupal8/)
But the "Settings" link for the Themes is correct.

Is this a drupal setting that i am missing?

I have drupal 8.2 installed locally in wamp64/www/drupal8 with
WAMP 3.0.6
Windows 10

Virtual Hosts allowed in httpd.conf

The following in my httpd-vhosts.conf:

<VirtualHost *:80>
ServerName www.ustenniscourts.smurm
ServerAlias www.ustenniscourts.smurm
DocumentRoot c:/wamp64/www/drupal8
<Directory "c:/wamp64/www/drupal8">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

I have the following in my host file:
127.0.0.1 localhost
127.0.0.1 localhost.com
127.0.0.1 www.ustenniscourts.smurm # drupal8 sandbox

Options: ReplyQuote
Re: d8 WAMP Virtual Host works, but links are wrong?
Posted by: Otomatic (Moderator)
Date: October 15, 2016 10:26AM

Hi,

> ServerAlias www.ustenniscourts.smurm
Do absolutely worthless!

Your httpd-vhosts.conf MUST be:
<VirtualHost *:80>
  ServerName localhost
  DocumentRoot c:/wamp64/www
   <Directory  "c:/wamp64/www/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>

<VirtualHost *:80>
  ServerName www.ustenniscourts.smurm
  DocumentRoot c:/wamp64/www/drupal8
  <Directory "c:/wamp64/www/drupal8/">
    Options +Indexes +Includes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local
  </Directory>
</VirtualHost>
Pay attention to the final slash to <Directory

> I have the following in my host file:
Your hosts file (C:\Windows\System32\drivers\etc\hosts) MUST be:
127.0.0.1 localhost
::1 localhost

# drupal8 sandbox
127.0.0.1 www.ustenniscourts.smurm
::1 www.ustenniscourts.smurm

If you created the VirtualHost by Wampserver tool, there would not have small errors.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.