Project

General

Profile

Actions

Support #1501

closed

Help MALS Journal set up a domain alias

Added by Matt Gold almost 13 years ago. Updated almost 13 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress (misc)
Target version:
Start date:
2011-12-29
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Please see related email sent privately.

Actions #1

Updated by Boone Gorges almost 13 years ago

André, I'll be using a WordPress plugin that maps external domain names to specific sites in our WP installation. Most of the work is done by the WP plugin, but I wanted to check with you about our Apache configuration - by default, will domains whose DNS points toward the Commons's IP automatically resolve to the Commons's WP installation webroot? Or will it be necessary to define a VirtualHost for each domain?

Thanks!

Actions #2

Updated by local admin almost 13 years ago

If virtual hosts are used, which in this case they are, Apache will respond to a request for an arbitrary domain with the first vhost defined. But having said that, I'd say that we should explicitly define all existing/valid sub-domains as ServerAlias of commons.gc.cuny.edu.

Actions #3

Updated by Boone Gorges almost 13 years ago

we should explicitly define all existing/valid sub-domains as ServerAlias of commons.gc.cuny.edu

Arbitrary subdomains are already handled correctly - that's how we're able to have new blogs.

If virtual hosts are used, which in this case they are, Apache will respond to a request for an arbitrary domain with the first vhost defined

Then as long as commons.gc.cuny.edu is the first defined vhost, we should be ok, right? (Do we even have any more vhosts defined on that box?)

Actions #4

Updated by local admin almost 13 years ago

Arbitrary subdomains are already handled correctly - that's how we're able to have new blogs.

That's true, but that's why I said "arbitrary domain" instead :-)

Then as long as commons.gc.cuny.edu is the first defined vhost, we should be ok, right?

It would work, but it's not a good practice. It's better to explicitly declare all expected domain and sub-domains.

(Do we even have any more vhosts defined on that box?)

cuny.is

Actions #5

Updated by Boone Gorges almost 13 years ago

It's better to explicitly declare all expected domain and sub-domains.

Cool :) Can I place a request for the following new vhosts, directed to the Commons webroot?
zeteojournal.com
zetjo.com

Actions #6

Updated by local admin almost 13 years ago

Added both now and reloaded the server configuration.

We can now simply set these addresses as CNAME of commons.gc.cuny.edu with their name service provider.

Actions #7

Updated by Boone Gorges almost 13 years ago

Thanks a million, André! I gave instructions to the domain owner, who is taking care of the DNS himself with his registrar.

Actions #8

Updated by Boone Gorges almost 13 years ago

  • Status changed from Assigned to Resolved

This has been resolved. Thanks to all for you help.

Actions

Also available in: Atom PDF