Configuring path mapping in PHP and Eclipse

I just installed my site locally to make it easier to test my pages.

Eclipse is configured to use the XAMPP server locally.

The problem is that I want to display my project in a specific place on my website.

T. In my Eclipse PHP project, I have a folder named

com 

I want it displayed on

 /com 

in the website.

I tried to do this in the mapping section of the Eclipse server settings, but this did not work. When i type

http: // localhost / com /

It should go to my project folder, however, when I print another folder, it should use regular website folders.

How can i do this?

+4
source share
2 answers

Ok, I edited the httpd.conf apache file like this and it works.

 #Alias for com folder Alias /com C:\PHP\workspace-php\php_project\com <Directory "C:\PHP\workspace-php\php_project\com"> Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> 
+3
source

I created the Eclipse workspace in the [xampp] \ htdocs folder

0
source

Source: https://habr.com/ru/post/1312634/


All Articles