Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-03 05:56:53 10月03日 Update

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!

Tags: Path program system training service domain name code actual combat customer client file is in storage configuration parameters foreign enterprise engineering engineer computer problem Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Microsoft NVidia Huawei Docker