I can not make my connection work.
On my server I have all the code of my project in AngularJS in the following location:
/var/www/html/web/site
My apache2 configuration file is located at:
/etc/httpd/conf
(I have other projects working correctly)
The virtualhost I use is the following:
<VirtualHost *:80>
ProxyPreserveHost On
ServerName webtest.stover.int
ServerAlias webtest.stover.int
RedirectMatch ^/$ /web/site
</VirtualHost>
If I do not understand wrong, I am saying that, when entering webtest.stover.int I redirect to
/var/www/html/web/site/index.html
Which it does correctly but it gives me a permission error:
You do not have permission to access /web/site/index.html on this server.
Thank you so much!
Using the following steps:
1) Update virtual file:-
<VirtualHost *:80>
ServerAdmin admin@test.com
ServerName mysite.com
ServerAlias www.mysite.com
ProxyRequests Off Order deny,allow Allow from all
<Location />
ProxyPass http:// mysite.com:8000/
ProxyPassReverse http:// mysite.com:8000/
</Location>
</VirtualHost>
2) Enabling Necessary Apache Modules
To enable these four modules, execute the following commands in succession.
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_balancer
sudo a2enmod lbmethod_byrequests
3) To put these changes into effect, restart Apache.
sudo systemctl restart apache2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.