Cactus, can you tell me how to undo it? Just by removing the template?
Yes, after that regenerate the configuration file and restart the webserver like this:
expand-template /etc/httpd/conf/httpd.conf
sv t httpd-e-smith
I'm not that good with creating templates, so I'll have to find an way to redirect. I'll probably asign the domain to an Ibay or something like that.
You could do so, as this is the intended way... but if you need more control you can use the path described below, which is a far better method than the one suggested in the wiki.
I offered my sportsclub to host their domain and website since my server is running anyway for my own domain; I thought it would be a simple thing to do.....
It is if you know how. In short the proper way is to create subdirectory for the domain you desire in the templates-custom tree at the same level of the VirtualHosts folder:
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/www.realvirtualdomain.com
Copy at least the following files from /etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/ into the new folder:
- 00Setup
- 02ServerName
- 25SSLDirectives
- 26RewriteTraceAndTrack
- 50DirectoryIndex00
- 50DirectoryIndex00PHP
- 85DefaultAccess
- template-begin
- template-end
The only thing we need to do now is to copy the content of the joomla configuration directives in there, but I do not have them handy...
After that you should be able to regenerate your configuration file
expand-template /etc/httpd/conf/httpd.conf
Test the configuration file
httpd -t
If it says the syntax is OK you can restart your webserver
sv t httpd-e-smith