Jump to content
Froxlor Forum
  • 0

Subdomain Redirect per CNAME instead of HTTP code


smat

Question

Hello,

 

I thought that instead of redirecting with HTTP redirect codes (which requires the client to open a connection to the http server), a (sub-)domain redirect could be done instead on name-server basis (using CNAME), which would yield better performance results.

 

I would suggest adding a "CNAME" option to the redirect-code dropdown-list for (sub-)domains, but only if the redirect target is a host without special path requirements (as a CNAME entry would just "replace" the host in a URI, preserving the browser-requested path)

 

I was not sure I should open a new feature-request in redmine, so at first wanted to post here.

I would be able to implement the changes and push them to git, but would need some time first to look into the code.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Thank you for your reply.

 

Really? The people who activate the "Nameserver" settings in froxlor are a small group? I would have thought that most of the users also use a nameserver, to coordinate all dns queries and subdomains etc ...

 

About the performance, imageine the following: a few websites with a lot of images, all on a subdomain cdn.domain.com for aestethic reasons, but the images are really hosted on cloudfront or amazonaws or the like. so we have 2 choices: a.) setup a http 302-redirect, or b.) configure the nameserver acordingly with a cname.

 

a.) would mean that for all of those pics from all sites, the clients would create (or reuse) a http connection, sending a request and receiving the redirect, then again opening, requesting and receiving the real file (1 pic = 2 http connections to 2 different hosts here)

b.) would mean that already on lookup for cdn.domain.com the client gets the real domain (cloudfront or amazonaws) and can directly open a connection to the right server (1 pic = 1 http connection)

 

I have seen other requests here for cname configuration in froxlor ... Is there anything being worked on? If direct dns zone configuration would be possible, then there would be no need for this "cname redirect" option anyways.

 

Interested in your opinion.

Link to comment
Share on other sites

... and there is really no interest to the small addition of "CNAME" redirect to the redirect-dropdown in the (sub-)domain settings?

If I would make changes, they would not be integrated into the codebase?

 

Just to clarify!

Thank you anyways.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...