The more I read the more Im confused about YAst configuration settings versus manual text edit of .conf files. ?Can all aspects of virtual hosts be set thru YAst or do some require manual edit? If you do manual edit, does later configure with YAst rewrite file and lose some data?
Yast’s ok for the install and initial config but I think most people do things in the conf files after that, and yes yast can change settings you’ve done ‘manually’ in confs
These are the files to look at:
/etc/apache2/http.conf <— global settings for the server
/etc/apache2/default-server.conf <---- settings for the ‘main’ host
The main hosts’s folder is usually /srv/www/htdocs unless you change it in default-server.conf
Virtual hosts are easiest done by creating a conf file for each one and placing them in the folder:
/etc/apache2/vhosts.d
There’s an example file in there called vhost.template you can use to get you started
I cant get any virtual hosts to work… all go to default host… oh so fustrating
Sorry… I am from a Windows background, where everything is configured from the same place and is more user friendly.
You need to enable NameVirtualHosts in listen.conf. That’s one setting that can’t be enabled from YaST, not sure why this was left out. And obviously you also need to have control over the name resolution so that those virtual hostnames map to the same IP. This is for name-based vhosts.
I finally figured it out, however YAst did add NameVirtualHost into default-server.conf instead of needing to add it manually in listen.conf… I had to figure out that YAst only modifies certain files that are *.includes in the basic apache install. if you modify them manually then start YAst, it holds your changes. but if you modify others it dont. very interesting. it has my fedora buddie all wacked out, how u do that. doh
Now if I could get somemore posts on my ftp question, I could have everything online.
I would like to know how you added listen name server through yast. I was able to finally get virtual named hosting working but I had to do it manually.
It has been 8 months since this post. Do you think this will be fixed in Yast someday?