Custom apache vhost

Custom apache vhost

Postby kevin39 » Sat Apr 19, 2014 7:05 am

Hi,
Is there a proper way to define custom apache vhost ?
I edited the httpd.conf but I think it's will be overridden after a firmware upgrade.

If currently there is no way to do that, what do you think about adding something like that in the default config :
IncludeOptional /share/1000/*/apache*.conf


It will include all apache.conf found in share folder.
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France

Re: Custom apache vhost

Postby Jocko » Sat Apr 19, 2014 9:31 am

Hi kevin,

You can do it by adding this line in all httpd.x file of the folder /etc (except for httpd.conf which is overwritten)
Code: Select all
IncludeOptional /share/1000/fvdw/myvirtualhost.conf


Note: I don't like to use jokers in a system conf file ;) (this can be a security issue)

Now: I won't be at home...
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Custom apache vhost

Postby kevin39 » Sat Apr 19, 2014 9:44 am

Ok,
Thank you :) I'll do !
kevin39
Donator VIP
Donator VIP
 
Posts: 79
Joined: Sat May 04, 2013 6:55 am
Location: Bordeaux, France


Return to Development

Who is online

Users browsing this forum: No registered users and 9 guests