I want my Laravel to use Client side Nuxt JS and use Laravel as backend admin-panel and api(s).
This is my code to proxy Laravel project to Nuxt JS but it's not properly working.
<VirtualHost *:80>
ServerName nuxt.local
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/nuxt/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPassMatch /^(admin-panel)(.*)$ !
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ProxyPreserveHost on
LogLevel debug
</VirtualHost>
I want to exclude "admin-panel" and "api" routes from hitting the proxy.