I have configured apache to run alongside with nginx on port 8080.
For some odd reason, I also have a wildcard domain defined at my DNS server, I've checked it, and it works(zazazazzaaaz.mysite.com still points to correct IP).
For some odd reason when I am trying to create virtual hosts for sites such as blog.mysite.com or app.mysite.com, it won't work.
Example VirtualHost code from sites-available dir:
<virtualhost *:8080> # Admin email, Server Name (domain name) and any aliases ServerAdmin firstname.lastname@example.org ServerName blog1.mysite.com:8080 ServerAlias blog1.mysite.com:8080 # Index file and Document Root (where the public files are located) DocumentRoot /var/www/vhosts/blog.mysite.com/htdocs/wordpress/ DirectoryIndex index.php # Custom log file locations LogLevel warn ErrorLog /var/www/vhosts/blog.mysite.com/log/error.log CustomLog /var/www/vhosts/blog.mysite.com/log/access.log combined </virtualhost>
Thanks in advance!