Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

How to set up Apache virtualhost

$
0
0
Hi,
I intended to set up a virtualhost, so I create a new.conf in /etc/apache2/vhost.d/new.conf .
Basically I want the documentroot is in /home/mypc/web/ directory. But somehow I can't make it work.

Here is my new.conf file look likes:
Code:

<VirtualHost *:80>
ServerName www.testing.com
DocumentRoot /home/mypc/web

Include /etc/apache2/conf.d/*.conf

<Directory "/home/mypc/web">
AllowOverride None
Order allow, deny
Allow from all
</Directory>

</VirtualHost>

Actually I know nothing about virtualhost setup, the codes above was the result of me googling all night. It seem there are no step by step setup guides available for opensuse machine out there. What a shame.

Anyway, what have I missed?

Thanks

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>