# Error: nginx: [emerg] unexpected "/" in /etc/nginx/sites-enabled/mydomain.conf:48

**URL:** https://discourse.roots.io/t/error-nginx-emerg-unexpected-in-etc-nginx-sites-enabled-mydomain-conf-48/7847
**Category:** trellis
**Created:** 2016-10-07T18:24:00Z
**Posts:** 3
**Showing post:** 2 of 3

## Post 2 by @buretta — 2016-10-07T18:41:03Z

Updated to the following :

- changed `sitemap(_index)?.xml|* "/gear.|` to `sitemap(_index)?.xml|/gear.*`
- updated `wp-..php` to `wp-.*.php`

This has fixed things. Below is fully updated.

```
enabled: true
      duration: 30s
      skip_cache_uri: /wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml|/gear.*|/cart.*|/my-account.*|/checkout.*|/addons.*
      skip_cache_cookie: comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in|woocommerce_cart_hash|woocommerce_items_in_cart|wp_woocommerce_session_|woocommerce_recently_viewed
```

If you follow this discussion and copy/paste exactly what is written it may result in the same issue I had

> [@WooCommerce + Roots Stack – BUGGY Cart](https://discourse.roots.io/t/woocommerce-roots-stack-buggy-cart/7554/6):
>
> Thanks Emzo, I’d actually already reached this point myself but appreciate your help slight_smile I guess it’s good to note for anyone hoping to get WooCommerce working glitch free with FastCGI Caching skip\_cache\_uri: /wp-admin/|/xmlrpc.php|wp-.\*.php|/feed/|index.php|sitemap(\_index)?.xml|\* "/store.\*|/cart.\*|/my-account.\*|/checkout.\*|/addons.\* skip\_cache\_cookie: comment\_author|wordpress\_[a-f0-9]+|wp-postpass|wordpress\_no\_cache|wordpress\_logged\_in|woocommerce\_cart\_hash|woocommerce\_items\_in\_ca…

I am still unsure if how I have written the cache control will still work as intended, will test shortly.

---

_[View the full topic](https://discourse.roots.io/t/error-nginx-emerg-unexpected-in-etc-nginx-sites-enabled-mydomain-conf-48/7847)._
