Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2><strong>Step 1:</strong> Install and configure Apache.</h2> <p>Make sure you specify what port you want to listen on, for me I specified <code>8080</code>. This will be the case for this series of instructions.</p> <p><code>Listen 8080</code> - Default is 80</p> <h2><strong>Step 2:</strong> Edit your <code>/etc/hosts</code> file to spoof your loopback address, 127.0.0.1</h2> <pre><code>127.0.0.1 localhost 127.0.0.1 some.example # domain-name.domain-TLD 127.0.0.1 www.some.example # The same as the above line, but with www. prefixed </code></pre> <p><em>You should really add a handle for subdomains on your web server, Apache or Nginx (or whatever else you use. Something that routes www to non-www.</em></p> <h2><strong>Step 3:</strong> Enable the Virtual Hosts import on Apache.</h2> <ol> <li>Open your <code>httpd.conf</code> file located within Apache2's subdirectories. <em>Usually within <code>/conf</code></em></li> <li>Uncomment the line that resembles this: <code>Include conf/extra/httpd-vhosts.conf</code></li> <li>Also uncomment this module import: <code>LoadModule log_config_module modules/mod_log_config.so</code></li> </ol> <h2><strong>Step 4:</strong> Configure your Virtual Hosts file</h2> <ol start="4"> <li>Find your Virtual Hosts config, <code>httpd-vhosts.conf</code>, you can comment out the two example Virtual Hosts in the file. <em>Usually within <code>/conf/extra</code></em></li> <li>Copy your own Virtual Host into the file from this template:</li> </ol> <blockquote> <pre><code>&lt;VirtualHost *:80&gt; # Change the 80 to the number Apache2 "Listen"s on. In my case, 8080 ServerName SERVER-ADDRESS # E.g. mywebsite.local ServerAlias WWW.SERVER-ADDRESS # E.g. www.mywebsite.local DocumentRoot " SERVER-FILE-ROOT " # E.g. "Users/user-name/Sites" &lt;Directory /&gt; # This should be a full path, though Require all granted # Required for permission errors Options Indexes FollowSymLinks Includes ExecCGI AllowOverride none &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> </blockquote> <h2>You're Done!</h2> <p>Once your Virtual Host has been edited to your liking you are done, <strong>just restart Apache and enjoy.</strong></p> <p>This guide already includes the fixes implemented, but in-case you still get permission errors:</p> <ul> <li>You MUST make sure that your <code>DocumentRoot</code> is not inside any documents your user explicitly owns. If it needs to be, give <code>"Read Only"</code> access to "Everyone" on Mac for that particular folder, E.g. "Documents" or "Movies" etc....</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload