Giter Site home page Giter Site logo

Comments (5)

svanzoest avatar svanzoest commented on June 11, 2024

@lolcode can you elaborate? I am not sure what you mean by this.

from apache2.

 avatar commented on June 11, 2024

Sorry.

What I mean is we need a way to configure directory alias (system fs to urls).

Normally I put the aliases on the http.conf of a virtual host. Using Alisa /foo /bar

Here is the doc:
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias

from apache2.

svanzoest avatar svanzoest commented on June 11, 2024

You can provide your own template for the config file, which allows you to add just about anything you want.

In a wrapper cookbook, create a vhost template such as templates/default/vhost.conf.erb and you can reference it as follows

web_app 'myapp' do
  docroot "/var/www/myapp/htdocs"
  template "vhost.conf.erb"
  server_name 'myapp.mydomain.com'
end

This provides you a lot of flexibility without needing to expose every Apache HTTP directive via the cookbook. Does that work for you?

from apache2.

 avatar commented on June 11, 2024

So the motto is to provide basic and generic interfaces through the configs and let the users create the specific ones, Nice to know.

And, thanks for your time and help.

from apache2.

lock avatar lock commented on June 11, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from apache2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.