Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to map the prefix with the domain #3182

Open
abidfakhrealam opened this issue Apr 18, 2024 · 4 comments
Open

Unable to map the prefix with the domain #3182

abidfakhrealam opened this issue Apr 18, 2024 · 4 comments
Assignees

Comments

@abidfakhrealam
Copy link

I follows the following step but unable to do. Is something I missed

Step 1: Install Apache
sudo apt update
sudo apt install apache2

Step 2: Install Apache
sudo apt update
sudo apt install apache2

Step 3: Configure Apache
sudo nano /etc/apache2/sites-available/archive.conf

Add the following configuration:
	<VirtualHost *:80>
		ServerName archivespace.jgu.edu.in

		ProxyPass / http://ip:8081/
		ProxyPassReverse / http://ip:8081/

		ProxyPass /staff http://ip:8080/staff
		ProxyPassReverse /staff http://ip:8080/

		ErrorLog ${APACHE_LOG_DIR}/archives_error.log
		CustomLog ${APACHE_LOG_DIR}/archives_access.log combined
	</VirtualHost>

Enable this virtual host configuration:
	sudo a2ensite archives.conf


	sudo a2enmod proxy

Step 4: Configure ArchivesSpace

Update the ArchivesSpace configuration file to reflect the proxy settings:
sudo nano /path/to/archivesspace/config/config.rb

Add or update the following lines:
	AppConfig[:frontend_proxy_url] = 'http://archivespace.jgu.edu.in/staff'
	AppConfig[:public_proxy_url] = 'http://archivespace.jgu.edu.in/'

Step 5: restart the service to reflect the changes
sudo systemctl restart apache2
sudo service solr restart
cd /opt/archivesspace/
sudo ./archivesspace.sh restart

@Blake-
Copy link
Contributor

Blake- commented Apr 23, 2024

@abidfakhrealam what's the error you're seeing?

@abidfakhrealam
Copy link
Author

abidfakhrealam commented Apr 24, 2024 via email

@Blake-
Copy link
Contributor

Blake- commented Apr 24, 2024

Can you try localhost instead of that ip, so something like

ProxyPass /public http://localhost:8081/public
ProxyPassReverse /public http://localhost:8081/

@abidfakhrealam
Copy link
Author

abidfakhrealam commented Apr 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants