Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

When accessing the iTop system through a domain name, it indicates that Forbidden cannot access it properly.

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

What should I do when I prompt Forbidden Forbidden You don't have permission to acces to access the iTop system through a domain name?

©Lander Zhang focuses on on-demand IT operation and maintenance services for foreign enterprises, and IT Helpdesk practical training practitioners

Blog: https://blog.51cto.com/lander

Practical training course for IT Helpdesk engineers: https://edu.51cto.com/lecturer/733218.html

Easy entry into foreign companies: the way for IT Helpdesk engineers to practice and self-study: https://blog.51cto.com/lander/2413018

Last updated: 2019-11-08

Problem description

The iTop training system is deployed in the enterprise intranet, and the A record is added to the intranet DNS to achieve access through http://itop.pushits.com.

On the server where iTop is deployed, it can be accessed normally through the domain name, but an error will be reported on the client computer: Forbidden You don't have permission to access / on this server.

Analysis of problems

This iTop training system environment is built on Windows Server 2016 based on WAMP. When native access is not deployed, you need to manually modify the configuration parameters of Apache to tell the path of the iTop Web program.

Operation steps

1. Determine the iTop web program path

We need to modify the parameters in the two configuration files of Apache. First, make sure that the path stored by the iTop Web program is under C:\ wamp64\ www:

two。 Modify two configurations in httpd.conf

Absolute path to the file: C:\ wamp64\ bin\ apache\ apache2.4.39\ conf\, find 248lines, change 248to 251lines:

Replace it with:

You can copy the code directly:

Options FollowSymLinks AllowOverride none Require all granted

Find 267 lines and change lines 267 to 295:

Replace it with:

Copy the code directly:

(note that the storage path of your iTop Web program is modified after DocumentRoot and Directory.)

DocumentRoot "C:/wamp64/www" Options Indexes FollowSymLinks AllowOverride all Require all granted

3. Modify httpd-vhosts.conf

Absolute path to the file: C:\ wamp64\ bin\ apache\ apache2.4.39\ conf\ extra, replace the entire content with the following code:

(pay attention to the modification after DocumentRoot to the storage path of your iTop Web program)

DocumentRoot "C:/wamp64/www"

4. Restart the Apache service

Type services.msc to open the service while running, and right-click wampapache64-Restart:

5. Test on the client

After testing, it can be accessed normally through the domain name http://itop.pushits.com on the client computer:

If the document is useful to you, please forward it and share it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report