Hi
I have vhosts on my machine.
I am obliged to write a xxxx.conf file for the differents vhosts, when i want to configure (add vhost, change valeur … )with Yast a got an error message and so i can’t use it
the error message is " l’adresse IP est déjà configuré sur un autre hote virtuel *:80/xxxx "
the conf file for my vhosts named by yast " ip-based_vhosts" as this form
<VirtualHost *:80>
DocumentRoot /srv/www/vhosts/test
ServerName www.test.arrow-breizh
ServerAlias test
ServerAdmin bga.lambert@free.fr
ErrorLog /var/log/apache2/test_log
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
<Directory /srv/www/vhosts/test>
AllowOverride none
Require all granted
Options Indexes FollowSymLinksBlockquote
.................
</virtualhost>
the block is repeted as i need , the values name, directory and so change
This config work fine i have all my vhosts running but it is a pity to not be able toi use yast for the job
the `*:80 is a NameVirtualHost
default server www.test.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
port 80 namevhost www.test.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
alias test
port 80 namevhost corpsintegral.localhost (/etc/apache2/vhosts.d/ip-based_vhosts.conf:44)
alias www.corpsintegral
alias www.corpsintegral.localhost
port 80 namevhost www.joomla (/etc/apache2/vhosts.d/ip-based_vhosts.conf:67)
alias joomla
port 80 namevhost www.glpi (/etc/apache2/vhosts.d/ip-based_vhosts.conf:111)
alias glpi
port 80 namevhost www.ocsreports (/etc/apache2/vhosts.d/ip-based_vhosts.conf:155)
alias ocsreports
port 80 namevhost www.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:241)
alias arrow-breizh
port 80 namevhost www.letfl (/etc/apache2/vhosts.d/ip-based_vhosts.conf:261)
alias letfl
port 80 namevhost www.pmb (/etc/apache2/vhosts.d/ip-based_vhosts.conf:278)
alias pmb
ServerRoot: “/srv/www”
Main DocumentRoot: “/srv/www/htdocs”
Main ErrorLog: “/var/log/apache2/error_log”
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir=“/run/” mechanism=default
Mutex mpm-accept: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: “/run/httpd.pid”
Define: SYSCONFIG
Define: phpMyAdmin
Define: SSL
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: MODPERL2
User: name=“wwwrun” id=498
Group: name=“www” id=498
Please always make a clear diference between the “explanation” and the “computer texts”. As you did in the first post. Your second post is very difficult to interpret.
Also please, always post computer texts complete./ That is start with the line with the prompt and command (so we can see who you are, where you are, what you do), all output (and not only the part you think is important, others may see things in that part you think is unimportant), and as last the new prompt line (this signals that this is all and complete).
ALso you do not say things like
but you SHOW that in the way as explained above. Only copy/paste, no typing of explanation needed at all.
the `*:80 is a NameVirtualHost
default server www.test.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
port 80 namevhost www.test.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
alias test
port 80 namevhost corpsintegral.localhost (/etc/apache2/vhosts.d/ip-based_vhosts.conf:44)
alias www.corpsintegral
alias www.corpsintegral.localhost
port 80 namevhost www.joomla (/etc/apache2/vhosts.d/ip-based_vhosts.conf:67)
alias joomla
port 80 namevhost www.glpi (/etc/apache2/vhosts.d/ip-based_vhosts.conf:111)
alias glpi
port 80 namevhost www.ocsreports (/etc/apache2/vhosts.d/ip-based_vhosts.conf:155)
alias ocsreports
port 80 namevhost www.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:241)
alias arrow-breizh
port 80 namevhost www.letfl (/etc/apache2/vhosts.d/ip-based_vhosts.conf:261)
alias letfl
port 80 namevhost www.pmb (/etc/apache2/vhosts.d/ip-based_vhosts.conf:278)
alias pmb
ServerRoot: “/srv/www”
Main DocumentRoot: “/srv/www/htdocs”
Main ErrorLog: “/var/log/apache2/error_log”
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir=“/run/” mechanism=default
Mutex mpm-accept: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: “/run/httpd.pid”
Define: SYSCONFIG
Define: phpMyAdmin
Define: SSL
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: MODPERL2
User: name=“wwwrun” id=498
Group: name=“www” id=498
like this ?
so the return of command e apachectl -S
the `*:80 is a NameVirtualHost
default server www.test.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
port 80 namevhost www.test.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:1)
alias test
port 80 namevhost corpsintegral.localhost (/etc/apache2/vhosts.d/ip-based_vhosts.conf:44)
alias www.corpsintegral
alias www.corpsintegral.localhost
port 80 namevhost www.joomla (/etc/apache2/vhosts.d/ip-based_vhosts.conf:67)
alias joomla
port 80 namevhost www.glpi (/etc/apache2/vhosts.d/ip-based_vhosts.conf:111)
alias glpi
port 80 namevhost www.ocsreports (/etc/apache2/vhosts.d/ip-based_vhosts.conf:155)
alias ocsreports
port 80 namevhost www.arrow-breizh (/etc/apache2/vhosts.d/ip-based_vhosts.conf:241)
alias arrow-breizh
port 80 namevhost www.letfl (/etc/apache2/vhosts.d/ip-based_vhosts.conf:261)
alias letfl
port 80 namevhost www.pmb (/etc/apache2/vhosts.d/ip-based_vhosts.conf:278)
alias pmb
ServerRoot: “/srv/www”
Main DocumentRoot: “/srv/www/htdocs”
Main ErrorLog: “/var/log/apache2/error_log”
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir=“/run/” mechanism=default
Mutex mpm-accept: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: “/run/httpd.pid”
Define: SYSCONFIG
Define: phpMyAdmin
Define: SSL
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: MODPERL2
User: name=“wwwrun” id=498
Group: name=“www” id=498
But why still the story telling: “so the return of command e apachectl -S”?
INCLUDE that one command line withing the copy/paste. See my example.
In any case, I hope people can help you.
As you have seen, I also run Apache, but I never used YaST > HTTP server. I am not sure that That can do more then a basic configuration. But, as said, I never used it.
yast is ( normaly) should ?? a good stuff for parameter differents item like network and so an and … apache web
As i said with yast i can’t parameter http server with multiple vhosts on the same IP and i am obliged ( i was !! ) to read apache doc and write a conf file manually
so …