I have developed a site in liferay 6.2 ce ga1 and assigned Virtual Host to portal in portal-ext.properties web.server.host=domain web.server.http.port=80. When i assign friendly url to sites developed in site administration unable to add Virtual Host Name.
How to map http://domain/web/siteone to http://newdomain.com
Access Site Settings by navigating to Site Administration and clicking Site Settings from the Configuration section on the left panel. There you should be able to configure Virtual Hosts. The tab allows you to define a domain name (i.e., www.mycompany.com) for your site. This can be a full domain or a subdomain.
Related
I am new to iis. I have create a website in my iis for my website content. Want to ask how can i bind the domain name with the site in iis for internal use.
this is what i have tried so far.
When you want to bind the domain name locally you have to bind it in the host file which is located at C:\Windows\System32\drivers\etc\hosts.
add your machine IP and domain name as suggested in the below format:
192.168.6.52 domian.com
by using this method you can only access it on your machine. the host file is only for the machine in which you are accessing the site.
now set the iis site binding as shown below:
clear browser cache and history and browse your site.
I have a site www.test.com hosted in IIS(Azure VM). I have a WordPress site hosted in Apache(Linux VM) in another server.
I need to map www.test.com/example to the WordPress site.
You have a couple options that come to mind:
Have IIS on Windows IIS box in Azure redirect that path to your other Wordpress site. This won't change the DNS name of the Wordpress box but will simple just redirect.
Use a web application gateway in Azure(article) or some other web routing appliance (VM) to act as your termination point for the www.test.com traffic. Then have it redirect that URL path to your Linux VM. In the containers world this is done with an Ingress controller.
I purchased a Domain from google and got 5 gb space from 5gbfree hosting website how should i now connect the domain to host?
You can update the DNS in the domain control panel.
For the DNS you can check the same in your hosting control panel.
If you are not able to find the DNS, then you can check for the IP(A-record) in your hosting control panel and update the same in the DNS manager of your domain control panel
The DNS can be updated from the DNS Manager in the provided domain control panel.
I hope it helps.
I am using multiple domains to access liferay portal instance.
For example following are the domains mapped in hosts file of windows:
www.liferaytest1.com
www.liferaytest2.com
and in Liferay's Control Panel → Portal Settings, www.liferaytest1.com is set as virtual host.
I can access portal instance with all above mention domains along with localhost.
When I access portal with www.liferaytest1.com then I can access Guest site pages directly. Say, home is a page in Guest site then instead of accessing with www.liferatest1.com/web/guest/home I can access it directly with www.liferaytest1.com/home
So URL is shortened to some extend.
So far so good.
First Concern
Now when I try to access portal via www.liferaytest2.com and when I click any sites listed in My Sites portlet of Liferay, it redirects me to that site with the domain mentioned in virtual host i.e. www.liferaytest1.com instead of retaining www.liferaytest2.com.
Suppose I have a Site named Help, so when I click on help site link in My Sites portlet then instead of staying with www.liferaytest2.com domain it redirects me with www.liferaytest1.com domain.
This is due to virtual host mapping done in liferay.
Second Concern
When I am accessing the portal with www.liferaytest2.com and subscribe to any of the Assets then the links in email contain the virtual host domain i.e www.liferaytest1.com.
How to overcome above mention issues?
My requirement is to stay relative to the portal accessing domain.
When I access portal via www.liferaytest2.com then it should not redirect me to www.liferaytest1.com on-click of any of the Site-links as explained above and also emails that I would be getting should also be relative to the domain I am accessing i.e. www.liferaytest2.com.
First of all: You're not required to use that feature - it's implemented in a certain way (e.g. as you describe) and if that doesn't suit your needs, there's no need to configure individual virtual hosts. There's no problem serving all content through just a single virtual host or do the resolution on Apache (e.g.) - that is, fully external to Liferay. The only drawback is that you'll need the clue of the site you want to access (e.g. /web/guest as part of the URL) so that Liferay knows what content to serve.
However, you might be closer to what you'd like to achieve if you change URLs to a structure like test1.example.com and test2.example.com - this way you share at least the toplevel domain and might be able to do some cheaper single-sign-on (you can still do SSO with completely different domains)
You don't need to change the virtual host in Control Panel → Portal Setting for such requirement. Rather keep it to localhost. This will resolve both of your concerns.
Next you want to access portal using two different domain, you can do it through DNS settings. Map both to same IP (the IP of Liferay portal) and you will reach Liferay portal using any one. It will not change the url and will stay from the name initiated.
I have created the sharepoint site . I want to assign the name as per www.something.com what settings I have to follow?
Assuming internal access
1) Setup a DNS entry on your internal DNS server so that www.something.com resolves to the IP address of your server.
2) SharePoint Central Administration > Operations > Alternate Access Mappings and change the server name in default to www.something.com
You should extend your web application to a different zone (for example the internet zone) in central admin. Then you can specify the host header and port number.
Central admin -> application management -> create or extend web application -> extend an existing web application (for SharePoint 2007)
If your site needs to be available over the internet, be sure to setup your firewall and dns records correctly as well.