Current time: 11-22-2024, 04:29 PM Hello There, Guest! (LoginRegister)


Post Reply 
ServerAlias and specific options for VHosts - manual configuration
Author Message
jmeyerdo Offline
Junior Member
*

Posts: 173
Joined: Oct 2007
Reputation: 2
Post: #11
RE: ServerAlias and specific options for VHosts - manual configuration
Hi!
raphael Wrote:I think we should better populate some dir like /etc/ispcp/apache/custom so even subdomains and aliases have thir own, custom, .conf file.
Hmm, why not keeping all .conf-files for the apache at the same place?
So I would prefer "...../sites-available/domain.de" or "...../sites-available/alias.de".

Why should "/etc/ispcp/apache/custom/domain.de", "/etc/ispcp/apache/custom/alias.de", ... be better?

Kind regards, Jens
11-03-2007 11:58 PM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #12
RE: ServerAlias and specific options for VHosts - manual configuration
because files under sites-available are only available configs, nothing enabled.
An administrator would expect a2ensite domain.tld to enable the custom config, and since that wouldn't be the case, sites-available won't be used (neither sites-enabled becuase of the same reason: a2dissite).
11-04-2007 04:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Cube Offline
Member
***

Posts: 740
Joined: Apr 2007
Reputation: 9
Post: #13
RE: ServerAlias and specific options for VHosts - manual configuration
I prefer joximu's proposal
Quote:/etc/apache2/ispcp/..
11-04-2007 04:21 AM
Find all posts by this user Quote this message in a reply
jmeyerdo Offline
Junior Member
*

Posts: 173
Joined: Oct 2007
Reputation: 2
Post: #14
RE: ServerAlias and specific options for VHosts - manual configuration
Hi!

Ok, I included the whole "sites-available" directory with my configuration because with CentOS "a2ensite" and "a2dissite" are not available.

For me it is not really important where to store the configuration-files. Of course I would like to see this feature in one of the next releases. Wink

Have a nice day, kind regards, Jens
11-04-2007 04:45 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #15
RE: ServerAlias and specific options for VHosts - manual configuration
the "sites-enabled/available" folders are used in debian (and similar) distros.
suse uses "vhosts" and other distros maybe to.
So, it maybe easier to look for a solution which runs on every distro without much configuration...

That's what my proposal stands for

/J
11-04-2007 10:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jmeyerdo Offline
Junior Member
*

Posts: 173
Joined: Oct 2007
Reputation: 2
Post: #16
RE: ServerAlias and specific options for VHosts - manual configuration
joximu Wrote:So, it maybe easier to look for a solution which runs on every distro without much configuration...

That's what my proposal stands for
Ah, yes - of course!

Sorry, I used my (absolute) paths as example. But in my piece of code you can see that I used the configuration-variable: "APACHE_SITES_DIR". For me this is actually "/etc/httpd/conf.d/sites-available" but can be different with other distros.
So it is still my opinion that this APACHE_SITES_DIR is the best place for this - and not including .conf-files from different places.

Kind regards, Jens
11-04-2007 06:53 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #17
RE: ServerAlias and specific options for VHosts - manual configuration
But there are distributions which use a2ensite and asdissite (and other a2-commmands) to enable/disable apache sites (and mods) - suse, centos and others don't uise theese commands.
So, for non-debian distros conf.d (oder vhosts.d) is a good places to put the ispcp-domain.conf files but it's not the best place for debian based distros...

we have to find the best for all possible (or at least major) distributions...

Joxi
11-04-2007 09:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)