My stack postgreSQL 8.3 lighttdp standard install Python standard install 2.6? Django SVN Firestarter firewall all on Kubuntu 7:10 on an amd x2 64 bit
First what works. My static web pages work. http://journeytothestars.webhop.net/ This is in var/www/index.html http://127.0.0.1 this gives me the static page but without the graphics for some reason (url.rewrite-once mistakes I would bet). With: ~/Django/journeysite$ python manage.py runserver 8080 http://127.0.0.1:8080/ I get the it worked django page. Nice! But with : ~/Django/journeysite$./manage.py runfcgi daemonize=false host=127.0.0.1 port=3080 http://127.0.0.1:3080/ I get nothing just the firefox waiting symbol. Other things I have tried ether get a 404 or nothing or etc. Does not work. What is the proper thing to try anyway? What I want to have happen. I want and thing ending in .html or with no ending to go to var/www and have all my static web pages there. http://journeytothestars.webhop.net/ or http://journeytothestars.webhop.net/index.html And anything with http://journeytothestars.webhop.net/admin should go to my Django admin pages http://journeytothestars.webhop.net/player should go to my Django pages for player stuff http://journeytothestars.webhop.net/game_master should go to my Django game master stuff. This is /etc/lighttpd/lighttpd.conf After that is my settings.py file for ~/Django/journeysite$ which has stars_app in it with models. Everything else has been unchanged. Firewall has port 80 open. I hope that is all it needs?? Thanks lots for any help. I have been working on this for a week, reading every link I can. I have learned a lot but can't get it to work at all. I am getting nowhere fast. I know I suck at this part, I am a programmer and don't know much about networking or servers yet and my regex skills suck . Thanks to anyone that can help get this up and working so I can get back to programming!! Douglas E Knapp PS This only will work when my computer is on. Daytime Germany mostly. http://journeytothestars.webhop.net/ # Debian lighttpd configuration file # ############ Options you really have to take care of #################### ## modules to load # mod_access, mod_accesslog and mod_alias are loaded by default # all other module should only be loaded if neccesary # - saves some time # - saves memory server.modules = ( "mod_access", "mod_alias", "mod_compress", "mod_rewrite", "mod_fastcgi", "mod_accesslog", # "mod_redirect", # "mod_status", # "mod_evhost", # "mod_usertrack", # "mod_rrdtool", # "mod_webdav", # "mod_expire", # "mod_flv_streaming", # "mod_evasive" ) server.document-root = "/var/www" #$HTTP["host"] == "journeytothestars.webhop.net"{server.document-root = "/var/www/"} fastcgi.server = ( "/journeysite.fcgi" => ( "main" => ( # Use host / port instead of socket for TCP fastcgi "host" => "127.0.0.1", "port" => 3080, #"socket" => "/home/user/mysite.sock", #"check-local" => "disable", ) ), ) alias.url = ( "/media/" => "/home/douglas/django_trunk/django/contrib/admin/media/", ) url.rewrite-once = ( "^/$" => "/index.html", ".*/images.*" => "$0", ".*\.css" => "$0", "^(/media.*)$" => "$1", ".*\.html($|\?)" => "$0",# This will make mod_rewrite "ignore" all requests of html files (or rather rewrite them to themselves, which makes it effectively ignore them) "^/favicon\.ico$" => "/media/favicon.ico", "^(/.*)$" => "/journeysite.fcgi$1", ) ## where to send error-messages to server.errorlog = "/var/log/lighttpd/error.log" ## files to check for if .../ is requested index-file.names = ( "index.php", "index.html", "index.htm", "default.htm", "index.lighttpd.html" ) ## Use the "Content-Type" extended attribute to obtain mime type if possible # mimetype.use-xattr = "enable" #### accesslog module accesslog.filename = "/var/log/lighttpd/access.log" ## deny access the file-extensions # # ~ is for backupfiles from vi, emacs, joe, ... # .inc is often used for code includes which should in general not be part # of the document-root url.access-deny = ( "~", ".inc" ) ## # which extensions should not be handle via static-file transfer # # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) ######### Options that are good to be but not neccesary to be changed ####### ## bind to port (default: 80) # server.port = 81 ## bind to localhost only (default: all interfaces) ## server.bind = "localhost" ## error-handler for status 404 #server.error-handler-404 = "/error-handler.html" #server.error-handler-404 = "/error-handler.php" ## to help the rc.scripts server.pid-file = "/var/run/lighttpd.pid" ## ## Format: <errorfile-prefix><status>.html ## -> ..../status-404.html for 'File not found' #server.errorfile-prefix = "/var/www/" ## virtual directory listings dir-listing.encoding = "utf-8" server.dir-listing = "enable" ## send unhandled HTTP-header headers to error-log #debug.dump-unknown-headers = "enable" ### only root can use these options # # chroot() to directory (default: no chroot() ) #server.chroot = "/" ## change uid to <uid> (default: don't care) server.username = "www-data" ## change uid to <uid> (default: don't care) server.groupname = "www-data" #### compress module compress.cache-dir = "/var/cache/lighttpd/compress/" compress.filetype = ("text/plain", "text/html", "application/ x-javascript", "text/css") #### status module # status.status-url = "/server-status" # status.config-url = "/server-config" #### url handling modules (rewrite, redirect, access) # url.rewrite = ( "^/$" => "/server- status" ) # url.redirect = ( "^/wishlist/(.+)" => "http://www. 123.org/$1" ) # # define a pattern for the host url finding # %% => % sign # %0 => domain name + tld # %1 => tld # %2 => domain name without tld # %3 => subdomain 1 name # %4 => subdomain 2 name # # evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/" #### expire module # expire.url = ( "/buggy/" => "access 2 hours", "/ asdhas/" => "access plus 1 seconds 2 minutes") #### rrdtool # rrdtool.binary = "/usr/bin/rrdtool" # rrdtool.db-name = "/var/www/lighttpd.rrd" #### handle Debian Policy Manual, Section 11.5. urls #### and by default allow them only from localhost $HTTP["remoteip"] == "127.0.0.1" { alias.url += ( "/doc/" => "/usr/share/doc/", "/images/" => "/usr/share/images/" ) $HTTP["url"] =~ "^/doc/|^/images/" { dir-listing.activate = "enable" } } #### variable usage: ## variable name without "." is auto prefixed by "var." and becomes "var.bar" #bar = 1 #var.mystring = "foo" ## integer add #bar += 1 ## string concat, with integer cast as string, result: "www.foo1.com" #server.name = "www." + mystring + var.bar + ".com" ## array merge #index-file.names = (foo + ".php") + index-file.names #index-file.names += (foo + ".php") #### external configuration files ## mimetype mapping include_shell "/usr/share/lighttpd/create-mime.assign.pl" ## load enabled configuration files, ## read /etc/lighttpd/conf-available/README first include_shell "/usr/share/lighttpd/include-conf-enabled.pl" # Django settings for journeysite project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('changed', '[EMAIL PROTECTED] for this email.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'postgresql_psycopg2' #, 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = 'changed' # Or path to database file if using sqlite3. DATABASE_USER = 'changed' # Not used with sqlite3. DATABASE_PASSWORD = 'blanked out for this email' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # although not all choices may be available on all operating systems. # If running in a Windows environment this must be set to the same as your # system time zone. TIME_ZONE = 'Europe/Berlin' # Language code for this installation. All choices can be found here: # http://www.i18nguy.com/unicode/language-identifiers.html LANGUAGE_CODE = 'en-us' SITE_ID = 1 # If you set this to False, Django will make some optimizations so as not # to load the internationalization machinery. USE_I18N = True # Absolute path to the directory that holds media. # Example: "/home/media/media.lawrence.com/" MEDIA_ROOT = '' # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" MEDIA_URL = '' # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # Examples: "http://foo.com/media/", "/media/". ADMIN_MEDIA_PREFIX = '/media/' # Make this unique, and don't share it with anybody. SECRET_KEY = 'blanked out for this email' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', # 'django.template.loaders.eggs.load_template_source', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', ) ROOT_URLCONF = 'journeysite.urls' TEMPLATE_DIRS = ( # Put strings here, like "/home/html/django_templates" or "C:/www/ django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'journeysite.stars_app', ) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---