Activity Stream
48,167 MEMBERS
62088 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 7 of 7
  1.     
    #1
    Member
    Website's:
    RlsPorn.eu ReleasePorn.eu

    Default lighttpd and allow all subdomains (all_what_i_will_write.domain.com)

    hi,

    i would like to know how to set up lighttpd config for all subdomains... i would like to allow all ..for example sub1.domain.com and rrr.domain.com and also ft7sjrgvs.domain.com any recommendation? Very thank you.
    jessepure Reviewed by jessepure on . lighttpd and allow all subdomains (all_what_i_will_write.domain.com) hi, i would like to know how to set up lighttpd config for all subdomains... i would like to allow all ..for example sub1.domain.com and rrr.domain.com and also ft7sjrgvs.domain.comhttp://www.besthostingforums.com/images/cdn/besthostingforums.com/2010/08/icon_smile-1.gif any recommendation? Very thank you. Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Setup vHost like this

    Code: 
    $HTTP["host"] =~ "(^|\.)knownsrv\.com$" {
    server.document-root = "/home/knownsrv/public_html"
    server.errorlog = "/var/log/lighttpd/knownsrv/error.log"
    accesslog.filename = "/var/log/lighttpd/knownsrv/access.log"
    }
    Every knownsrv.com subdomain that has A record to this server would point to /home/knownsrv/public_html unless you create a new vHost for a subdomain.
    KnownSRV.com - Quality comes at a price, and we provide it at affordable prices.
    PayPal, Skrill(MoneyBookers), Payza(AlertPay), 2CheckOut and LibertyReserve accepted!

  4.     
    #3
    Member
    Website's:
    RlsPorn.eu ReleasePorn.eu
    thanks for answer, but still doesn not working..

    my configuration:

    $HTTP["host"] =~ "(^|/.)mywebsite/.com$" {
    server.document-root = "/home/mywebsite.com/public_html"
    server.errorlog = "/var/log/lighttpd/error.log"
    accesslog.filename = "/var/log/lighttpd/access.log"
    magnet.attract-physical-path-to = ( server.document-root + "/rewrite.lua" )

    what have i do? thats the same like your solution..

    Very thanks.

  5.     
    #4
    Member
    mhm , try
    $HTTP["host"] =~ "^(.+\.)?domain\.com$" {
    Coding Horror Fan
    I don't read PM's frequently .

  6.     
    #5
    Member
    Website's:
    RlsPorn.eu ReleasePorn.eu
    thanks, but does not wokring too..

  7.     
    #6
    Member
    Website's:
    RlsPorn.eu ReleasePorn.eu
    otherwise
    Code: 
    magnet.attract-physical-path-to = ( server.document-root + "/rewrite.lua" )
    cannot have any affect ?

  8.     
    #7
    Member
    Make sure to restart (or reload) lighttpd after configuration.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Nginx and subdomains
    By skinner in forum Server Management
    Replies: 5
    Last Post: 14th Mar 2012, 10:29 PM
  2. How to make Subdomains on Namecheap?
    By my123world in forum Webmaster Discussion
    Replies: 1
    Last Post: 14th Dec 2011, 10:17 AM
  3. Different subdomains to different wordpress installs on 1 vps?
    By futureawesome in forum Server Management
    Replies: 2
    Last Post: 4th Aug 2011, 06:15 PM
  4. Google rankings for subdomains
    By vin in forum Webmaster Discussion
    Replies: 0
    Last Post: 20th Dec 2010, 08:46 PM
  5. Individual subdomains
    By gmaister22 in forum General Discussion
    Replies: 13
    Last Post: 23rd Nov 2010, 06:40 PM

Tags for this Thread

BE SOCIAL