Liferay change portal settings by file - liferay

i'm working with liferay in a local machine, with CAS implemented
I changed the cas setting in the web like this:
Login URL - http://localhost:8080/cas-web/login
Logout URL - http://localhost:8080/cas-web/logout
Server Name - http://localhost:8080/cas-web
Server URL - http://localhost:8080/cas-web/proxyValidate
Now is giving me ERR_SSL_PROTOCOL_ERROR when i'm try enter, i tried modify the portal-ext.properties for change the cas.auth.enabled=false but seems like liferay have more priority in the portal settings.
The last configuration that works for me was:
cas.login.url=https://localhost:8443/cas-web/login
cas.logout.url=https://localhost:8443/cas-web/logout
cas.server.name=localhost:8080
cas.server.url=https://localhost:8443/cas-web
cas.validate.url=https://localhost:8443/cas-web/proxyValidate
how disable the cas login for i can enter into liferay portal without cas and change the setting into the portal?

Just go to table portletpreferences and search for portlet id like '%cas%';
then copy the preferences column in notepad and search for xml tag set the value as false and restart the server.
You will be able to see the normal login page.

Related

Remove subdirectories from URL on IIS

I currently have a website running on IIS Windows Server 2019.
The website's url is : https://mywebsite.com/Sub1/login
When i get to https://mywebsite.com i obiously dont get the connexion form.
I would like to get rid of /Sub1/login and turn into https://mywebsite.com.
I tried using URL Rewrite but i don't get the syntax. Could any please help me ? :)
As Lex Li said, you can do this by setting the default document.
In IIS Manager, click the server name node, and then scroll to locate the Default Document icon.
Double click Default Document.
In the Actions pane, click Add.
In the Add Default Document dialog box, type the full filename of the default page.(such as login.aspx)
Click OK.
But the premise is that your default page needs to be placed in the root directory. This way you can directly access your default page by typing https://mywebsite.com in your browser.
In addition, you cannot use the Rewrite operation to remove the path part of the URL, because Rewrite does not change the address in the browser.

Liferay deployment in linux Server

i have installed liferay 7 in linux server. but when i try start the server it doesnt start properly shows up without css .
Is there any procedure to install liferay in linux server
Browser Console
Some files are accessing with url localhost
http://localhost:8383/o/classic-theme/css/aui.css?browserId=firefox&themeId=classic_WAR_classictheme&minifierType=css&languageId=en_US&b=7002&t=32
http://localhost:8383/o/mentions-web/css/mentions.css
/o url is not generating with hostname instead generates with localhost
I found the reason i added
web.server.host=domain
web.server.http.port=80
in
portal-ext.properties
It works now. Thanks for the replies
After setting up the username password and db details kindly go to the page settings and try to change the theme or check their the option for csss.
or
add this property in portal-ext.properties file present in the tomcat/webapps/ROOT/WEB-INF/classes or you need to create portal-ext.properties file.
theme.css.fast.load=true

Authentication Required Popup box for vTiger CMS

I'm using vTiger CRM 5.4.0
It was working fine but i have changed and updated my server and simply copy paste and upload previous back from old server along with DB...
but it always shows me Popup box for "Authentication Required" on each page.
this message is most probably due to the use of HTTP Basic Authentication on the server side.
This has nothing to do with Vtiger and it's something you (or the person in charge of managing your server) needs to set on the web server side (may be Apache, IIS, or others).
If your interest is to disable the request of username and password, you should edit the server configuration. In case of IIS, this is a good starting point. In case of Apache web server, see this link.
Otherwise, you should check with the manager of your server for your username and password. The popup should not come up once the right combination has been entered.
I think the problem is Plesk. Plesk automaticaly creates a virtual directory named "test". This directory holds the Vtiger logo. Loading the logo causes the permission issue.
Solution: rename or delete the virual directy "test" in Plesk.

Configure ISAPI redirector: worker propreties for IIS and Liferay

we have fronted Liferay tomcat server with IIS , and we used ISAPI tomcat redirector for that ,everything works just fine.
the problem is that We need to map a specific Domain name to a specific URL on Liferay:
workers.properties :
worker.mydomain_com.port=8014
worker.mydomain_com.host=127.0.0.1
worker.mydomain_com=ajp13
uriworkermap.properties
/mydomain.com/=mydomain_com
/www.mydomain.com=mydomain_com
/www.mydomain.com/*=mydomain_com
This configuration will map www.mydomain.com to localhost:xxxx .
what i want is how to configure the worker mydomain_com so it can be mapped to localhost:xxxx/web/organiation. I searched for worker.mydomain.options but there is no configuration for the uri, is there any way to do ?
Thanks
As your configuration in IIS for mapping to www.mydomain.com is working fine. Its better to keep it like that and enable friendly URL for site in liferay so that you don't really need /web/organiation
Here are the steps to do in liferay 6.1
Login to Liferay as administration.
Go to Control Panel
Select your site and then click on "Site Settings".
Click on "Site URL" in right side.
Under "Virtual Hosts", you should see a text box named "Public Pages"
Enter www.mydomain.com and save.
Then liferay automatically redirect requests coming to it from www.mydomain.com to public pages of this site.
If you are using different liferay version, steps may be little different. But it still provides an option to set domain name for site.

Create user friendly alias for a sharepoint site

I have a test Sharepoint server running on a Windows 7 machine. The url is http://liu-t500-01 and i want to create a user friendly alias http://temp for it. i have added
127.0.0.1 temp
to my hosts file (an A/host entry) and i have also created an alternate access mapping in Central Administration
http://liu-t500-01 Default http://liu-t500-01
http://temp Intranet http://temp
However when i try http://temp in the browser the sharepoint site does not come up. This is probably a simple problem but has me scratching my head...what did i do wrong?
Changing the IIS binding only will cause errors. You need to modify the alternate access mappings in SharePoint. There are tons of good articles our there that tell what to do in detail.
Here is just one: http://technet.microsoft.com/en-us/sharepoint/Video/ff679917
Try adding a host header in IIS
In IIS click on your site
choose the Bindings action
Click Add
In the Host Name field enter "temp"
click OK

Resources