To serve schema files from the dcm4chee-arc-lang project, follow these steps to create a symlink, configure an Apache Alias, and set permissions.
### 1. Create Symlink
Link the `webapp` folder of the language project into Apache’s web root:
```bash
sudo mkdir -p /var/www/html/dcm4chee-arc-lang
sudo ln -s /home/<user>/workspace/dcm4chee-arc-lang/src/main/webapp \
/var/www/html/dcm4chee-arc-lang/webapp
2. Configure Apache Alias
Edit your Apache site configuration (e.g. 000-default.conf) and add:
Alias /dcm4chee-arc-lang/ /var/www/html/dcm4chee-arc-lang/webapp/
<Directory /var/www/html/dcm4chee-arc-lang/webapp>
Options FollowSymLinks
Require all granted
</Directory>
Reload Apache after saving changes.
3. Set Permissions
Allow the Apache user (www-data) to access the project files:
sudo usermod -aG <user> www-data
# Optional: restrict access to owner and group only (recommended)
chmod -R 750 /home/<user>/workspace/dcm4chee-arc-lang
Restart Apache after applying permissions.