Here's my apache 2.4 virtual host config
<VirtualHost *:80>
DocumentRoot /var/www/fd-pro/app-api/public_html
ServerName subdomain.domain.com.au
ServerAlias subdomain.domain.com.au
<Directory /var/www/fd-pro/app-api/public_html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/subdomain-error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/subdomain-access.log combined
</VirtualHost>
I have enabled rewrite module also.
And there is an htaccess in /var/www/fd-pro/app-api/public_html
saying
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header set Access-Control-Max-Age "1000"
Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
But still its not working!
Any clues, please?