logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: I need quick help setting up url rewrite rules multiple VH's
Author
cipherion



Joined: 21 Oct 2012
Posts: 2

PostPosted: Sun 21 Oct '12 15:49    Post subject: I need quick help setting up url rewrite rules multiple VH's Reply with quote

Hello there

This is my first post here, and I'm really happy with the community Smile

I'm kinda new to apache and I have the following situation, which I need help with.

I have a vps, on which I have set the following:
WordPress Site A, has it's own VirtualHost and domain
WordPress Site B, has it's own VirtualHost and domain
Canvas LMS (not connected to a domain).
Canvas LMS can add multiple accounts, which may (or may not) be accessed individually using a URL that looks as follows:
{canvas_root}/accounts/{account_id}/

For example:
http://....../accounts/4/

I need to add a link to each of WP sites, which points to each site's account on Canvas, such that it appears as .../learning/ folder

For example:
Code:
http://WPSiteA/learning/
http://WPSiteB/learning/

which actually represents
Code:
http://WPSiteA/accounts/4/
http://WPSiteB/accounts/5/

which in turn represents
Code:
http://{my_vps_ip}/accounts/4/
http://{my_vps_ip}/accounts/5/

respectively

Noticing the following:
I do not want the users to see the /account/4/ , just /learning/
I also want to prevent accessing
Canvas LMS is located beyond the website's DocumentRoot
I want this to work with both HTTP and HTTPS

That's a lot I know Smile, but I really appreciate your help

Thanks guys!
Back to top
cipherion



Joined: 21 Oct 2012
Posts: 2

PostPosted: Sun 21 Oct '12 23:17    Post subject: Reply with quote

Guys, I'm depressed :'(
Can anyone help me, please?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7354
Location: Germany, Next to Hamburg

PostPosted: Mon 22 Oct '12 11:35    Post subject: Reply with quote

cipherion wrote:
Guys, I'm depressed :'(
Can anyone help me, please?

This is no paid support forum, sometimes answers take some time... and you didn't wait 24 hours. Also you asked on a Sunday Wink

You could use an Alias in each vhost.
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 684

PostPosted: Mon 22 Oct '12 13:37    Post subject: Reply with quote

James, I second on that. Also the subject "need quick help" does not help to get a quick answer.


cipherion, please read the forum rules. Looks you just dropping an open question and you suspect that someone figures it out.
Back to top


Reply to topic   Topic: I need quick help setting up url rewrite rules multiple VH's View previous topic :: View next topic
Post new topic   Forum Index -> Apache