Problem with the redirect

Asked

Viewed 100 times

3

I am creating an application in Node.js using express admin to manage data. It ran great as locally, but when I put in apache server the redirect to login gives error.

In case, when I went to http://localhost/sales/admin should redirect to http://localhost/sales/admin/login, but is redirecting to http://localhost/login, returning me page not found.

Follow the code of my virtualhost:

<VirtualHost *:80>

    ServerAdmin webmaster@localhost

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    ProxyPreserveHost On
    ProxyRequests off

    <Proxy *>
      Order deny,allow
      Allow from all
    </Proxy>

    Alias /sales /var/www/html
    <Location /sales>
        ProxyPass  http://localhost:8000/
        ProxyPassReverse http://localhost:8000/
    </Location>

    Alias /sales/api /var/www/html
    <Location /sales/api>
        ProxyPass  http://localhost:6000/
        ProxyPassReverse http://localhost:6000/
    </Location>

    Alias /sales/admin /var/www/html
    <Location /sales/admin>
        ProxyPass  http://localhost:3000/
        ProxyPassReverse http://localhost:3000/
    </Location>

</VirtualHost>
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.