How to Install and Configure Web Services (Apache Virtual Hosting) in Zentyal Server


Install and Configure Web Services (Apache Virtual Hosting) in Zentyal Server

This article explains the installation and configuration of Web Services (Apache Virtual Hosting) in Zentyal Server.

Install Apache web server

Logon to Zentyal Web Administration Page. Go to Software Management -> Zentyal Components and choose Web Server.

Click Install button

After the installation, go to Modules Status&rarr Web Server module.

Accept the Enabling prompt and hit Save to apply new changes.


Create Virtual Hosts and DNS Configuration

Navigate to Web Server and set the HTTPS listening port and click Change button

Go to Web Server Modules -> Virtual Hosts. Enter the Name of the virtual host and hit ADD button.

After the virtual host has been added hit Save Changes button to apply changes.

The newly created virtual host is not available because the DNS server does not contain a hostname. Go to DNS module and select Hostnames listed in alias and then trigger ADD NEW button.

Go to your Zentyal DNS FQDN hostname record.

Enter the same name that is provided for the Apache Virtual Host on Alias field, trigger ADD and Save Changes button.

Open a browser and navigate to Virtual host name.


Create SSL for Apache web server

Go to the Certification Authority module -> General.

On Authority Certificate enter the following settings and then click Create.

Organization Name your domain name (pdc.linuxhelp.com)
Country Code (optional) your country code ( 2-3 characters )
City (optional) your organization main location
State (optional) leave it empty
Days to Expire 3650

After the main Authority Certificate has been created, issue the new certificate for the virtual host with the following settings.

Common Name enter your virtual host name
Days to Expire 3649
Subject Alternative Names (optional) your email address

After the Certificate has been generated you can download it.

Go to Certification Authority -> Services Certificates, select Enable and then choose Action icon to edit certificate.

On Common Name, enter the name of the newly created Virtual host. Check Enable and press Change button. Finally hit Save changes button to apply the new settings.


To Allow SSL

Navigate to Web server module and click on Action button from the listed Virtual Hosts to edit SSL settings. On SSL support, choose Allow SSL option. Click Change and then Select Save changes.

Now the Apache will connect “ virtual.linuxhelp.com” virtual host on both default http ports 80 and 443. Repeat the above steps to add many domains or subdomains to Zentyal Web hosting box.

Tag : Apache Zentyal
Comment
rachidfarasbouraima
Dec 10 2020
Hello. Please the last part where you got registered in Outlook i did not understand how you did it
Add a comment
FAQ
Q
Can I boot and install Zentyal from a USB memory?
A
Refer the the official site for better assistance for the installation of Zentyal server "https://wiki.zentyal.org/wiki/Install_Zentyal_from_USB_memory"
Q
Can I change Zentyal's web interface language?
A
Yes, from the System -> General menu, but you will need to install the appropriate language pack first, for example, to install Spanish support, I will type down in the CLI sudo apt-get install language-pack-zentyal-es, and then select Spanish in the interface.
Q
How to install the firewall on zentyal server?
A
It comes with zentyal server by default.
Q
I am getting IP conflict error on Zentyal server, where to check or rectify this?
A
After Zentyal configuration, Under you settings add your static IP.
Q
Where to set CNAME for my domain after Zentyal configuration?
A
After Zentyal configuration, you 'll have settings icon named "Alias" under domains-> hostname mention your alias name there.