Skip to content

Nginx subdomain does not work

Summary

When creating a subdomain on a nginx host, you get this error when visiting it: direct access directory forbidden

Steps to reproduce

  1. Create a subdomain on a nginx host
  2. Visit the newly created subdomain

Correct behaviour

The site should show up.

Environment

ISPConfig version: 3.2.4

Proposed fix

Change $1 to $2 in the nginx vhost template (See acfb1ace )

References

https://www.howtoforge.com/community/threads/subdomain-doesnt-work-anymore.86746/