Redirection problem

3

I'm creating an application in node.js using admin expression to manage the data. It ran great as locally, but when I put it on the Apache server redirection for login gives error.

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

Here is the code for 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>
    
asked by anonymous 17.01.2016 / 03:58

0 answers