Hi Everyone
Is it possible to configure VHost in such a way that the purchased domain (for example domainOne.pl) after entering into the browser displayed the page on my Apache2 + server after entering the IpServer / owncloud browser to get to the cloud?
I am asking for help in configuring VHost. I tried in different ways but to no avail or both vhosts work in mode:
IpSerwera / domainOne.pl
IpSerwera / ownCloud
or
domainOne.pl - works
IpServera / owncloud - does not work
my Vhosts:
<VirtualHost *:80>
ServerAdmin gielas.g@lgmail.com
DocumentRoot /var/www/html/owncloud
ServerName owncloud
ServerAlias owncloud
<Directory /var/www/html/owncloud>
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex /var/www/html/owncloud
Options FollowSymlinks
SetEnv HOME /var/www/html/owncloud
SetEnv HTTP_HOME /var/www/html/owncloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
vhost domain:
<VirtualHost *:80>
ServerAdmin gielas.g@gmail.com
DocumentRoot /var/www/html/ciesliska.pl
ServerName www.ciesliska.pl
ServerAlias ciesliska.pl
CustomLog /var/www/logs/ciesliska.log combined
ErrorLog /var/www/logs/ciesliska.log
<Directory /var/www/html/ciesliska.pl>
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex /var/www/html/ciesliska.pl
Options FollowSymlinks
</Directory>
</VirtualHost>
Thanks Very Much