sub domain to act as proxy for another sub domain? apache / htaccess [closed] - apache

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have a subdomain:
subdomain.mydomain.com
On my site are 5 images taken from a table which are links from another site:
example: subdomain.anothersite.com/image/123.jpg
If i rename the links in the table to change the domain from
subdomain.anothersite.com/images/123.jpg to subdomain.mydomain.com/images/123.jpg
Can I then setup some sort of reverse proxy which means any url from that table will show as:
subdomain.mydomain.com/images/123.jpg - but is actually showing the content from subdomain.anothersite.com/images/123.jpg
?
Thanks

You can actually achieve that by setting up a CNAME through your DNS from subdomain.mydomain.com to subdomain.anothersite.com . The domain will be essentially masked and all your users see is subdomain.mydomain.com/images/123.jpg

Related

Two virtual hosts to one single directory root was created, but I need to pass variable/params from virtualhosts for accessing two different pages [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I created two Virtual Hosts, and targeting to a single web root direcoty.
But I need to access two different profiles with passing of variables from Virtual Hosting.
it is possible using routing technique...
Just we need to get the domain name and check the condition and then route accordingly.

Apache - Rewrite /#!/ back to URL [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm hoping this is possible with htaccess rewrite. I googled around but had no luck.
Apache receives this request:
http://example.com/item/foo/bar/
Everytime it receives a link with 'http://example.com/item/', I need it to rewrite to look like this.
http://example.com/#!/item/foo/bar/
What's the best way to achieve this with apache? Thanks!
That is not possible the hash is normally not transmitted to the server so you cannot handle this on the server side.
The hash or anchor is used only on the client side to jump to a position in place of the document or for some old JavaScript/Flash applications.

.htaccess how to make more than one variable to a simple url [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Hello i want to make a friendly url from the url which is really complex.
My current url is:
mydomain.net/?t=status&b=iid&ref=7007&ty=comment
When a user go on the url I wanna to make it as:
http://mydomain.net/status/comment
is it possible?
Is not. I would need as: mydomain.net/t/b/ref/comment
Visit Apache document
Here you will find how to rewrite .htaccess mod rewrite.

Google Analytics Tracking a sub-directory which itself is pointed to by a separate domain in DNS [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have an existing website pointed to by the domain www.xyz.com . We are now creating a new sub-site to this www.xyz.com/ab/. We have another regional domain www.abc.rg purchased and we want to point this domain to the /ab/ sub-folder.
The queries are:
If I want to do this at the DNS level is it going to be an issue in terms of SEO?
If I do so how can I add Google tracking to it? I want to continue using my existing tracking for www.xyz.com and provide reports separately for www.abc.rg.

Terminal/SSH : How can i track how many people are accessing my site at the moment live? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I want to connect to ssh and type in a command that will show me live updates such as their ip address as they enter my site. is that possible? simply see what page an ip address entered or just the ip of a person that connected to the site.
Live meaning i see the list updated as it happens.
tail -f /path/to/your/access.log
Usually reading the log is pretty useless though.