We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
SubDomain redirect to ip:port/directory/folder
SubDomain redirect to ip:port/directory/folder
Dear All,
I do have a domain mydomain.com. I did make a subdomain of that domain mysubdomain.mydomain.com. I can forward that subdomain to any IP by setting DNS A record but I want , if any one try to browse mysubdomain.mydomain.com then his request will forward to http://123.123.123.123:8090/folder
How can i set above scenario in VestaCP?
Your kind co-operation is highly appreciated......
I do have a domain mydomain.com. I did make a subdomain of that domain mysubdomain.mydomain.com. I can forward that subdomain to any IP by setting DNS A record but I want , if any one try to browse mysubdomain.mydomain.com then his request will forward to http://123.123.123.123:8090/folder
How can i set above scenario in VestaCP?
Your kind co-operation is highly appreciated......
Re: SubDomain redirect to ip:port/directory/folder
Hi
You need use .htaccess or nginx rules to do that, whit ns you cant do it.
You can use proxypass or redirect 301
You need use .htaccess or nginx rules to do that, whit ns you cant do it.
You can use proxypass or redirect 301
Re: SubDomain redirect to ip:port/directory/folder
Dear Sir,
Thanks for your prompt response
Do you have any example or any sample demo?
that will really helpful!
Thanks for your prompt response
Do you have any example or any sample demo?
that will really helpful!
Re: SubDomain redirect to ip:port/directory/folder
azazur wrote:Dear Sir,
Thanks for your prompt response
Do you have any example or any sample demo?
that will really helpful!
.htaccess (apache)
Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysubdomain\.mydomain\.com$ [NC]
RewriteRule ^(.*)$ http://123.123.123.123:8090/folder$1 [R=301]
Code: Select all
server {
listen 80;
server_name mysubdomain.mydomain.com;
location / {
proxy_pass http://123.123.123.123:8090/folder;
}
}
-
- Posts: 2
- Joined: Mon Dec 05, 2016 8:36 am
Re: SubDomain redirect to ip:port/directory/folder
hello, i have created a domain test.com and it created a folder for that but now i want a sub domain sub.test.com and i want that folder inside test folder can i do that.
as i have already coded my site according to that so i need that folder inside the main domain directory.
as i have already coded my site according to that so i need that folder inside the main domain directory.