Hi
I saw same old tread but i did’nt find the answer.
I created vhosts , same IP adress and different name
exemple : glpi.localhost , test.localhost
a conf file :
<VirtualHost *>
DocumentRoot /srv/www/vhosts/glpi
ServerName glpi.localhost
ServerAlias www.glpi.localhost
ServerAdmin bga.lambert@free.fr
ErrorLog /var/log/apache2/glpi_log
HostnameLookups Off
UseCanonicalName On
ServerSignature On
<Directory /srv/www/vhosts/glpi>
AllowOverride none
Require all granted
Options Indexes FollowSymLinks
</Directory>
ScriptAlias /cgi-bin/ /srv/www/cgi-bin
<Directory /srv/www/cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
</Directory>
</VirtualHost>
All the vhosts ares under the vhost directory exemple /srv/www/vhost/glpi …
since i did that i can’t access to phpmyadmin, with is normal because it is under /srv/www/hdocs
I saw I should created a vhost for phpmyadmin to be able to acced to it
I have try different conf, but i can’t
could you help me ??
best regards
I can give to you the defaul server conf
ServerName localhost
ServerAdmin bga.lambert@laposte.net
DocumentRoot /srv/www/vhosts
<Directory /srv/www/vhosts>
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
ScriptAlias cgi-bin /srv/www/cgi-bin
<Directory /srv/www/cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
IncludeOptional /etc/apache2/conf.d/*.conf
NameVirtualHost *
best regards
Looks like it is solved
I can access from URL : http://arrow-breizh/phpMyAdmin
with this conf file for new vhost
<VirtualHost *>
DocumentRoot /srv/www/htdocs/
ServerName arrow-breizh
ServerAlias /phpMyAdmin /srv/www/htdocs/phpMyAdmin
ServerAdmin bga.lambert@laposte.net
UseCanonicalName On
HostnameLookups Off
<Directory /srv/www/htdocs/phpMyAdmin>
AllowOverride all
Require all granted
Options Indexes FollowSymLinks
</Directory>
ScriptAlias /cgi-bin/ /srv/www/cgi-bin
<Directory /srv/www/cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
Require all granted
</Directory>
</VirtualHost>