-
Notifications
You must be signed in to change notification settings - Fork 226
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
Comments
@abidfakhrealam what's the error you're seeing? |
No error is showing in the log files.
I followed the following steps but was unable to do so. Is something I
missed
I tried this after installation of archivesspace
*Step 1: Install Apache*
sudo apt update
sudo apt install apache2
*Step 2: Configure Apache*
sudo nano /etc/apache2/sites-available/archive.conf
Add the following configuration:
<VirtualHost *:80>
ServerName archivespace.jgu.edu.in
ProxyPass /public http://IP:8081/public
ProxyPassReverse /public http://IP:8081
ProxyPass /staff http://IP:8080/staff
ProxyPassReverse /staff http://IP:8080/staff
ErrorLog ${APACHE_LOG_DIR}/archives_error.log
CustomLog ${APACHE_LOG_DIR}/archives_access.log combined
</VirtualHost>
Enable this virtual host configuration and apache2 modules
sudo a2ensite archives.conf
sudo a2enmod proxy
*Step 3: 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:// <http://xyz.abc.edu.in/staff>
domain_url/staff'
ppConfig[:public_proxy_url] = 'http:// <http://xyz.abc.edu.in/>
domain_url/public'
Step 4: restart the service to reflect the changes
sudo systemctl restart apache2
sudo service solr restart
cd /opt/archivesspace/
sudo ./archivesspace.sh restart
I want to make like this, but failed to do so:
user-interface: http:// <http://xyz.abc.edu.in/>domain_url
Admin-interface: http:// <http://xyz.abc.edu.in/>
domain_url/admin'
and I tried this also but failed to do so
Admin-interface: http:// <http://xyz.abc.edu.in/staff>
domain_url/staff
User-interface = http:// <http://xyz.abc.edu.in/>
domain_url/public
I would be very thankful if you could help me with this problem.
I also attached my *config.rb* file for your reference:
Thanks and Best Regards,
Abid Fakhre Alam
…On Tue, Apr 23, 2024 at 10:19 PM Blake Carver ***@***.***> wrote:
@abidfakhrealam <https://github.com/abidfakhrealam> what's the error
you're seeing?
—
Reply to this email directly, view it on GitHub
<#3182 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH4GMYC7CE3ARAJGIBQBXTLY62GKJAVCNFSM6AAAAABGNDZV4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZSHEYTCMRRHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Can you try localhost instead of that ip, so something like
|
In the apache configuration file
/etc/apache2/site-available/archivespace.conf:
<VirtualHost *:80>
ServerName domain
ProxyPreserveHost On
# Proxy for /staff
ProxyPass /staff http://localhost:8080/staff
ProxyPassReverse /staff http://localhost:8080
# Proxy for /public
ProxyPass /public http://localhost:8081/public
ProxyPassReverse /public http://localhost:8081/
</VirtualHost>
and in /opt/archivesspace/config/config.rb file:
AppConfig[:public_url] = "http://localhost:8081"
AppConfig[:frontend_url] = "http://localhost:8080"
AppConfig[:frontend_proxy_url] = 'http://localhost/staff/'
AppConfig[:public_proxy_url] = 'http://localhost/public/'
However I was unable to map the domain
Thanks and Best Regards,
Abid Fakhre Alam
…On Wed, Apr 24, 2024 at 5:31 PM Blake Carver ***@***.***> wrote:
Can you try localhost instead of that ip, so something like
ProxyPass /public http://localhost:8081/public
ProxyPassReverse /public http://localhost:8081/
—
Reply to this email directly, view it on GitHub
<#3182 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH4GMYCXH2BGZZ7WYZBHFHDY66NINAVCNFSM6AAAAABGNDZV4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZUG43TSNJUGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Step 4: Configure ArchivesSpace
Update the ArchivesSpace configuration file to reflect the proxy settings:
sudo nano /path/to/archivesspace/config/config.rb
Step 5: restart the service to reflect the changes
sudo systemctl restart apache2
sudo service solr restart
cd /opt/archivesspace/
sudo ./archivesspace.sh restart
The text was updated successfully, but these errors were encountered: