Domain redirecting to OpenScholar user page

Events happening in the community are now at Drupal community events on www.drupal.org.
vgXhc's picture

I've installed OpenScholar on an Amazon EC2 instance. What I'd now like to do is to send visitors of my www.lastname.net domain directly to my OpenScholar user page (with the URL being displayed as www.lastname.net/). Any hints on how to do this?

Thanks,
Harald.

Comments

Harald, Funny you should

jsagotsky's picture

Harald,

Funny you should mention that. I started documenting that process yesterday. Here's what I've got so far: https://redmine.hmdc.harvard.edu/projects/openscholar/wiki/Custom_Domains Let me know if that documentation is adequate or if I need to expand on anything in particular.

Since you're doing this on your own servers, please ignore the parts about requesting tickets. The basic steps involved are pointing the domain name to your server, configuring a vhost on your server to point that domain name to your OS installation, and making a change in your user's control panel settings.

Jon

Hi Jon, thanks for the link!

vgXhc's picture

Hi Jon,
thanks for the link! Can you maybe say a bit more what the vhost file would have to look like? If I just point the domain to the server's IP, set the custom domain in the user settings, and then go to the www.userdomain.net, I get to the "Welcome to your new Drupal website!" but weirdly the events calendar from the user's page shows up there too. Only going to userdomain.net/username will get me to the proper site.

Harald.

Harald, The vhost config will

jsagotsky's picture

Harald,

The vhost config will look something like

DocumentRoot /path/to/openscholar
</VirtualHost

I actually just copy my OS vhost, but give it a new domain to recognize.

Regarding domain.net/username, try changing the domain type to domain owner. I should include a note about that in my docs.

ServerAlias

sh157's picture

Hi...

I think you could also use a ServerAlias directive within the main vhost that serves the openscholar site, e.g.

DocumentRoot /var/www/html
ServerName scholar.uni.edu
ServerAlias anothername.uni.edu
ServerAlias stillanothername.uni.edu

In other words, ServerAlias tells the vhost also to respond to other names...

Jon, thanks so much. It's

vgXhc's picture

Jon,
thanks so much. It's working now -- the domain owner vs. domain group plus the server alias were the two crucial settings.

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: