Skip to content

Instantly share code, notes, and snippets.

@andrrr
andrrr / troubleshooting.md
Created January 16, 2019 16:32 — forked from adamwathan/troubleshooting.md
Troubleshooting Valet on macOS Sierra

Troubleshooting Valet on Sierra

Common Problems

Problem: I just see "It works!"

Apache is running on port 80 and interfering with Valet.

  1. Stop Apache: sudo /usr/sbin/apachectl stop
  2. Restart Valet: valet restart
### Symphony 2.0.x ###
Options +FollowSymlinks -Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico"
RewriteCond %{REQUEST_FILENAME} favicon.ico [NC]
server {
listen 80;
server_name localhost;
access_log /path/to/log/access.log;
error_log /path/to/log/error.log;
location / {
root /path/to/root;
index index.php;
@andrrr
andrrr / nc-breadcrumbs.xsl
Created December 12, 2011 14:03
Nested Cats Path
<xsl:template match="data">
<h1>My Page</h1>
<hr/>
<h3>My Breadcrumbs</h3>
<xsl:apply-templates select="nc-breadcrumbs/path"/>
</xsl:template>
<xsl:template match="nc-breadcrumbs/path">
<ul class="breadcrumbs">
<xsl:apply-templates select="item" />
@andrrr
andrrr / ajax-form.xsl
Created September 30, 2011 08:31
Ajax Form
<!-- ================== -->
<!-- = At Normal Page = -->
<!-- ================== -->
<xsl:template match="data">
<h1>Contact Form</h1>
<form method="post" action="{$current-path}">
<xsl:call-template name="send-message"/>
</form>
<script type="text/javascript">