Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into es
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
This folder contains a simple HTML page using the API mode. | ||
|
||
|
||
Configure a custom host to load the API: | ||
|
||
* In apache config add a new virtual host | ||
|
||
``` | ||
<VirtualHost gnapi:80> | ||
ServerName gnapi | ||
DocumentRoot /data/dev/geonetwork/web-ui/src/main/resources/catalog/views/api/ | ||
ErrorLog ${APACHE_LOG_DIR}/error.log | ||
CustomLog ${APACHE_LOG_DIR}/access.log combined | ||
<Directory /data/dev/geonetwork/web-ui/src/main/resources/catalog/> | ||
Options Indexes FollowSymLinks | ||
AllowOverride None | ||
Require all granted | ||
</Directory> | ||
</VirtualHost> | ||
``` | ||
|
||
|
||
* In ```/etc/hosts``` add the new host | ||
|
||
``` | ||
127.0.0.1 gnapi | ||
``` | ||
|
||
Load ```http://gnapi```. |