# Apache2 Virtual Servers on SLES for Raspberry PI

**URL:** <https://forums.suse.com/t/apache2-virtual-servers-on-sles-for-raspberry-pi/32279>\
**Category:** SLES for Raspberry Pi\
**Created:** [April 14, 2018, 10:45pm UTC](https://forums.suse.com/t/apache2-virtual-servers-on-sles-for-raspberry-pi/32279 "2018-04-14T22:45:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Occhioverde](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@Occhioverde](https://forums.suse.com/u/Occhioverde)\
**Post date:** [April 14, 2018, 10:45pm UTC](https://forums.suse.com/t/apache2-virtual-servers-on-sles-for-raspberry-pi/32279/1 "2018-04-14T22:45:50Z")

</div>

Good morning everyone.  
I just installed SLES on my Raspberry Pi Model B with the purpose of installing a Web server with Apache 2.  
Just started, however, I noticed that the commands "a2ensite " and "a2dissite " are not compatible with the version of Apache 2 pre-installed in this image of SLES and Yast can not do so.  
I wonder then: can I use the Virtual hosts of Apache2 on SLES installed on Raspbery PI?  
Thank you in advance for the help.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [April 15, 2018, 12:09am UTC](https://forums.suse.com/t/apache2-virtual-servers-on-sles-for-raspberry-pi/32279/2 "2018-04-15T00:09:25Z")

</div>

Occhioverde Wrote in message:  
[color=blue]

> Good morning everyone.  
> I just installed SLES on my Raspberry Pi Model B with the purpose of  
> installing a Web server with Apache 2.  
> Just started, however, I noticed that the commands "a2ensite " and  
> "a2dissite " are not compatible with the version of Apache 2  
> pre-installed in this image of SLES and Yast can not do so.  
> I wonder then: can I use the Virtual hosts of Apache2 on SLES installed  
> on Raspbery PI?  
> Thank you in advance for the help.[/color]

The a2ensite and a2dissite commands are not applicable to SUSE  
Linux Enterprise Server (or Desktop or openSUSE).

Instead you can enable virtual hosts by putting a suitable  
configuration file into /etc/apache2/vhosts.d/ - please  
see  
[https://bit.ly/2vkDxqs](https://bit.ly/2vkDxqs) for SUSE’s documentation on this.

## HTH.

Simon Flood  
SUSE Knowledge Partner

----Android NewsGroup Reader----  
[http://usenet.sinaapp.com/](http://usenet.sinaapp.com/)

---

<div class="post-metadata">

**Author:** ![Occhioverde](https://avatars.discourse-cdn.com/v4/letter/o/f19dbf/32.png) [@Occhioverde](https://forums.suse.com/u/Occhioverde)\
**Post date:** [April 19, 2018, 11:57pm UTC](https://forums.suse.com/t/apache2-virtual-servers-on-sles-for-raspberry-pi/32279/3 "2018-04-19T23:57:09Z")

</div>

Thank you so much for your help.  
I’ll try it as soon as possible.
