Re: Unable to get any images and .css files are not loaded
On Apr 6, 5:25 pm, kmw kochhar...@gmail.com wrote: ... Figured it out: my url.rewrite rules were wrong, try this in the lighttpd.conf, it should work alias.url = ( /media = /opt/reviewboard/var/www/localhost/htdocs/media, /errordocs = /opt/reviewboard/var/www/localhost/htdocs/ errordocs, ) url.rewrite-once = ( ^/reviews(/media/.*)$ = $1, ^/reviews(/errordocs/.*)$ = $1, ^(/.*)$ = /reviewboard.fcgi$1, ) The above fixed things for me. Thanks, this made my day!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: Unable to get any images and .css files are not loaded
Thanks for the suggestion, but it still isn't quite working. The error is different, though 10.x.x.x www.example.com - [06/Apr/2009:16:00:41 -0700] GET /reviews/ media/ HTTP/1.1 404 345 - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 10.x.x.x www.example.com - [06/Apr/2009:16:00:41 -0700] GET /reviews/ media/ HTTP/1.1 404 345 - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 My assumption was that the configuration files took into account the settings I passed to rb-site. If not, are there other changes I should make to use the http://www.example.com/reviews/ path instead of http://reviews.example.com/ ? On Apr 3, 2:17 pm, Christian Hammond chip...@chipx86.com wrote: You need to update your lighttpd configuration to change: ^(/media/.*)$ = $1, to: ^(/reviews/media/.*)$ = $1, Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.review-board.org VMware, Inc. -http://www.vmware.com On Fri, Apr 3, 2009 at 11:18 AM, Chuck ctuf...@gmail.com wrote: I'm going to me too this problem, but using lighttpd. The machine is running Ubuntu 8.04 with a default lighttpd installation and configuration file. [660] egrep -v '^(#|$)' /etc/lighttpd/lighttpd.conf server.modules = ( mod_access, mod_alias, mod_accesslog, mod_compress, ) server.document-root = /var/www/ server.errorlog = /var/log/lighttpd/error.log index-file.names = ( index.php, index.html, index.htm, default.htm, index.lighttpd.html ) accesslog.filename = /var/log/lighttpd/access.log url.access-deny = ( ~, .inc ) static-file.exclude-extensions = ( .php, .pl, .fcgi ) server.pid-file = /var/run/lighttpd.pid dir-listing.encoding = utf-8 server.dir-listing = enable server.username = www-data server.groupname = www-data compress.cache-dir = /var/cache/lighttpd/compress/ compress.filetype = (text/plain, text/html, application/ x-javascript, text/css) include_shell /usr/share/lighttpd/create-mime.assign.pl include_shell /usr/share/lighttpd/include-conf-enabled.pl $HTTP[remoteip] == 127.0.0.1 { alias.url += ( /doc/ = /usr/share/doc/, /images/ = /usr/share/images/ ) $HTTP[url] =~ ^/doc/|^/images/ { dir-listing.activate = enable } } include rb-lighttpd.conf [661] egrep -v '^(#|$)' /etc/lighttpd/rb-lighttpd.conf server.modules += ( mod_auth, mod_access, mod_rewrite, mod_expire, mod_fastcgi, mod_alias, mod_accesslog, mod_compress, ) $HTTP[host] =~ www\.example\.com { # This is not used directly, it is superceded by our aliases below. server.document-root = /var/www/reviews.example.com/htdocs server.errorlog = /var/www/reviews.example.com/logs/lighttpd- error.log accesslog.filename = /var/www/reviews.example.com/logs/lighttpd- access.log fastcgi.server = ( /reviewboard.fcgi = ( main = ( bin-path = /var/www/reviews.example.com/htdocs/ reviewboard.fcgi, socket = /var/www/reviews.example.com/tmp/ fastcgi.sock, check-local = disable, ) ), ) alias.url = ( /media = /var/www/reviews.example.com/htdocs/media, /errordocs = /var/www/reviews.example.com/htdocs/ errordocs, ) url.rewrite-once = ( ^(/media/.*)$ = $1, ^(/errordocs/.*)$ = $1, ^(/.*)$ = /reviewboard.fcgi$1, ) # Aggressively cache all static files $HTTP[url] =~ \.(jpg|gif|png|css|js|htc) { expire.url = ( = access 1 years ) } # Compress files for faster transfer compress.filetype = ( text/plain, text/html, text/javascript, text/css, text/xml ) compress.cache-dir = /var/www/reviews.example.com/tmp/ mimetype.assign = ( .gif = image/gif, .jpg = image/jpeg, .jpeg = image/jpeg, .ico = image/png, .png = image/png, .pdf = application/pdf, .gz = application/x-gzip, .css = text/css, .html = text/html, .htm = text/html, .txt = text/plain, .js = text/javascript, ) } The access log forhttp://yoursite/reviews/media/is 10.x.x.xwww.example.com- [03/Apr/2009:11:00:39 -0700] GET /reviews/ media/rb/css/common.css?1238710879 HTTP/1.1 404 2447 http:// www.example.com/reviews/account/login/?next_page=/reviews/dashboard/ Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid)
Re: Unable to get any images and .css files are not loaded
It looks very possible that generated lighttpd config files have broken subdir install support. Try also updating the paths in your alias.url section for for media and errordocs. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.review-board.org VMware, Inc. - http://www.vmware.com On Mon, Apr 6, 2009 at 4:08 PM, Chuck ctuf...@gmail.com wrote: Thanks for the suggestion, but it still isn't quite working. The error is different, though 10.x.x.x www.example.com - [06/Apr/2009:16:00:41 -0700] GET /reviews/ media/ HTTP/1.1 404 345 - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 10.x.x.x www.example.com - [06/Apr/2009:16:00:41 -0700] GET /reviews/ media/ HTTP/1.1 404 345 - Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 My assumption was that the configuration files took into account the settings I passed to rb-site. If not, are there other changes I should make to use the http://www.example.com/reviews/ path instead of http://reviews.example.com/ ? On Apr 3, 2:17 pm, Christian Hammond chip...@chipx86.com wrote: You need to update your lighttpd configuration to change: ^(/media/.*)$ = $1, to: ^(/reviews/media/.*)$ = $1, Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.review-board.org VMware, Inc. -http://www.vmware.com On Fri, Apr 3, 2009 at 11:18 AM, Chuck ctuf...@gmail.com wrote: I'm going to me too this problem, but using lighttpd. The machine is running Ubuntu 8.04 with a default lighttpd installation and configuration file. [660] egrep -v '^(#|$)' /etc/lighttpd/lighttpd.conf server.modules = ( mod_access, mod_alias, mod_accesslog, mod_compress, ) server.document-root = /var/www/ server.errorlog= /var/log/lighttpd/error.log index-file.names = ( index.php, index.html, index.htm, default.htm, index.lighttpd.html ) accesslog.filename = /var/log/lighttpd/access.log url.access-deny= ( ~, .inc ) static-file.exclude-extensions = ( .php, .pl, .fcgi ) server.pid-file= /var/run/lighttpd.pid dir-listing.encoding= utf-8 server.dir-listing = enable server.username= www-data server.groupname = www-data compress.cache-dir = /var/cache/lighttpd/compress/ compress.filetype = (text/plain, text/html, application/ x-javascript, text/css) include_shell /usr/share/lighttpd/create-mime.assign.pl include_shell /usr/share/lighttpd/include-conf-enabled.pl $HTTP[remoteip] == 127.0.0.1 { alias.url += ( /doc/ = /usr/share/doc/, /images/ = /usr/share/images/ ) $HTTP[url] =~ ^/doc/|^/images/ { dir-listing.activate = enable } } include rb-lighttpd.conf [661] egrep -v '^(#|$)' /etc/lighttpd/rb-lighttpd.conf server.modules += ( mod_auth, mod_access, mod_rewrite, mod_expire, mod_fastcgi, mod_alias, mod_accesslog, mod_compress, ) $HTTP[host] =~ www\.example\.com { # This is not used directly, it is superceded by our aliases below. server.document-root = /var/www/reviews.example.com/htdocs server.errorlog = /var/www/reviews.example.com/logs/lighttpd- error.log accesslog.filename = /var/www/reviews.example.com/logs/lighttpd- access.log fastcgi.server = ( /reviewboard.fcgi = ( main = ( bin-path = /var/www/reviews.example.com/htdocs/ reviewboard.fcgi, socket = /var/www/reviews.example.com/tmp/ fastcgi.sock, check-local = disable, ) ), ) alias.url = ( /media = /var/www/reviews.example.com/htdocs/media, /errordocs = /var/www/reviews.example.com/htdocs/ errordocs, ) url.rewrite-once = ( ^(/media/.*)$ = $1, ^(/errordocs/.*)$ = $1, ^(/.*)$ = /reviewboard.fcgi$1, ) # Aggressively cache all static files $HTTP[url] =~ \.(jpg|gif|png|css|js|htc) { expire.url = ( = access 1 years ) } # Compress files for faster transfer compress.filetype = ( text/plain, text/html, text/javascript, text/css, text/xml ) compress.cache-dir = /var/www/reviews.example.com/tmp/ mimetype.assign = ( .gif = image/gif, .jpg = image/jpeg, .jpeg = image/jpeg, .ico = image/png, .png = image/png, .pdf = application/pdf, .gz = application/x-gzip,
Re: Unable to get any images and .css files are not loaded
On Apr 6, 5:12 pm, kmw kochhar...@gmail.com wrote: On Apr 6, 4:12 pm, Christian Hammond chip...@chipx86.com wrote: It looks very possible that generated lighttpd config files have broken subdir install support. Try also updating the paths in your alias.url section for for media and errordocs. Christian Hi, I seem have this problem as well, after modifying the alias.url and the url.rewrite rules. I'm running reviewboard via lighttpd on Ubuntu 8.10. The only difference from the install instructions is that I've installed reviewboard into a self-contained directory in /opt/ reviewboard. Here are the relevant sections of my lighttpd.conf, I can provide more as needed. alias.url = ( /reviews/media = /opt/reviewboard/var/www/localhost/htdocs/ media, /reviews/errordocs = /opt/reviewboard/var/www/localhost/ htdocs/errordocs, ) url.rewrite-once = ( ^(/reviews/media/.*)$ = $1, ^(/reviews/errordocs/.*)$ = $1, ^(/.*)$ = /reviewboard.fcgi$1, ) Here are the errors from the logs :::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] GET / reviews/media/rb/css/common.css?1239050624 HTTP/1.1 404 345 http:// localhost/reviews/account/preferences/?next=/reviews/dashboard/ Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 ... snip ... :::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] GET / reviews/media/rb/css/common.css?1239050624 HTTP/1.1 404 345 http:// localhost/reviews/account/preferences/?next=/reviews/dashboard/ Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 It seems that the lighttpd conf that is generated is broken, which I fixed manually above, but it also seems to have another problem somewhere else. Figured it out: my url.rewrite rules were wrong, try this in the lighttpd.conf, it should work alias.url = ( /media = /opt/reviewboard/var/www/localhost/htdocs/media, /errordocs = /opt/reviewboard/var/www/localhost/htdocs/ errordocs, ) url.rewrite-once = ( ^/reviews(/media/.*)$ = $1, ^/reviews(/errordocs/.*)$ = $1, ^(/.*)$ = /reviewboard.fcgi$1, ) Should I file a bug in the issue tracker to fix the generated lighttpd.conf? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: Unable to get any images and .css files are not loaded
Yeah, please do file a bug. It'll help us track it and I'll work on a fix for the next beta. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.review-board.org VMware, Inc. - http://www.vmware.com On Mon, Apr 6, 2009 at 5:25 PM, kmw kochhar...@gmail.com wrote: On Apr 6, 5:12 pm, kmw kochhar...@gmail.com wrote: On Apr 6, 4:12 pm, Christian Hammond chip...@chipx86.com wrote: It looks very possible that generated lighttpd config files have broken subdir install support. Try also updating the paths in your alias.url section for for media and errordocs. Christian Hi, I seem have this problem as well, after modifying the alias.url and the url.rewrite rules. I'm running reviewboard via lighttpd on Ubuntu 8.10. The only difference from the install instructions is that I've installed reviewboard into a self-contained directory in /opt/ reviewboard. Here are the relevant sections of my lighttpd.conf, I can provide more as needed. alias.url = ( /reviews/media = /opt/reviewboard/var/www/localhost/htdocs/ media, /reviews/errordocs = /opt/reviewboard/var/www/localhost/ htdocs/errordocs, ) url.rewrite-once = ( ^(/reviews/media/.*)$ = $1, ^(/reviews/errordocs/.*)$ = $1, ^(/.*)$ = /reviewboard.fcgi$1, ) Here are the errors from the logs :::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] GET / reviews/media/rb/css/common.css?1239050624 HTTP/1.1 404 345 http:// localhost/reviews/account/preferences/?next=/reviews/dashboard/ Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 ... snip ... :::127.0.0.1 localhost - [06/Apr/2009:17:03:23 -0700] GET / reviews/media/rb/css/common.css?1239050624 HTTP/1.1 404 345 http:// localhost/reviews/account/preferences/?next=/reviews/dashboard/ Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009032711 Ubuntu/8.10 (intrepid) Firefox/3.0.8 It seems that the lighttpd conf that is generated is broken, which I fixed manually above, but it also seems to have another problem somewhere else. Figured it out: my url.rewrite rules were wrong, try this in the lighttpd.conf, it should work alias.url = ( /media = /opt/reviewboard/var/www/localhost/htdocs/media, /errordocs = /opt/reviewboard/var/www/localhost/htdocs/ errordocs, ) url.rewrite-once = ( ^/reviews(/media/.*)$ = $1, ^/reviews(/errordocs/.*)$ = $1, ^(/.*)$ = /reviewboard.fcgi$1, ) Should I file a bug in the issue tracker to fix the generated lighttpd.conf? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: Unable to get any images and .css files are not loaded
I tried to login using http://yoursite/reviewboard/media/ it gives me Index of / * djblets/ * admin/ * ext/ * rb/ * firebug/ * uploaded/ On Mar 26, 11:17 am, Christian Hammond chip...@chipx86.com wrote: The Apache config file is the key thing though. It defines where the media paths are. The problem you're having is most likely just your configuration aliasing your /media directory to the wrong place. Try going tohttp://yoursite/reviewboard/media/in your browser and looking at the Apache log files to see what it's complaining about. Alternately, you might need to do rb-site upgrade /path/to/site/. Check the htdocs/media/ directory in your site dir and see if the symlinks there are broken. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.review-board.org VMware, Inc. -http://www.vmware.com On Wed, Mar 25, 2009 at 11:08 PM, Dev devmeg...@gmail.com wrote: Hi Christian sorry for the mess happened. Below i have pasted setting.py and settings_local.py file. FYI : I have installed Reviewboard 1.0 and starting my reviewboard server in the path /usr/lib/python2.4/site-packages/ ReviewBoard-1.0alpha2-py2.4.egg/reviewboard/ using ./manage.py runserver **.***.***.***: Settings.py def dependency_error(string): sys.stderr.write('%s\n' % string) sys.stderr.write(install_help) sys.exit(1) if os.path.split(os.path.dirname(__file__))[1] != 'reviewboard': dependency_error('The directory containing manage.py must be named reviewboard') # Load local settings. This can override anything in here, but at the very # least it needs to define database connectivity. try: import settings_local from settings_local import * except ImportError: dependency_error('Unable to read settings_local.py.') TEMPLATE_DEBUG = DEBUG local_dir = os.path.dirname(settings_local.__file__) if local_dir == os.path.dirname(__file__): # settings_local.py and settings.py are in the same place. This is probably # an SVN checkout. LOCAL_ROOT = local_dir else: # This is likely a site install. Get the parent directory. LOCAL_ROOT = os.path.dirname(local_dir) HTDOCS_ROOT = os.path.join(LOCAL_ROOT, 'htdocs') MEDIA_ROOT = os.path.join(HTDOCS_ROOT, 'media') # URL prefix for media -- CSS, JavaScript and images. Make sure to use a # trailing slash. # # Examples: http://foo.com/media/;, /media/. MEDIA_URL = getattr(settings_local, 'MEDIA_URL', SITE_ROOT + 'media/') # Base these on the user's SITE_ROOT. LOGIN_URL = SITE_ROOT + 'account/login/' ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/' # Cookie settings LANGUAGE_COOKIE_NAME = rblanguage SESSION_COOKIE_NAME = rbsessionid SESSION_COOKIE_AGE = 365 * 24 * 60 * 60 # 1 year SESSION_COOKIE_PATH = SITE_ROOT # The list of directories that will be searched to generate a media serial. MEDIA_SERIAL_DIRS = [admin, djblets, rb] settings_local.py - # Site-specific configuration settings for Review Board # Definitions of these settings can be found at #http://docs.djangoproject.com/en/dev/ref/settings/ # Database configuration DATABASE_ENGINE = 'mysql' DATABASE_NAME = 'reviewboard' DATABASE_USER = '*' DATABASE_PASSWORD = '**' DATABASE_HOST = 'localhost' DATABASE_PORT = '' # Unique secret key. Don't share this with anybody. SECRET_KEY = 'd** # Cache backend settings. CACHE_BACKEND = 'file:///tmp/reviewboard_cache' # Extra site information. SITE_ID = 1 SITE_ROOT = '/reviewboard/' FORCE_SCRIPT_NAME = '' I don't have any specific information in apache configuration file.So i have not pasted here. Pl let me know i am in the right way or not. Regards, dev On Mar 23, 12:44 pm, Christian Hammond chip...@chipx86.com wrote: I didn't see the Apache file and settings_local.py file that was requested. Perhaps I missed the e-mail, but gmail's not showing anything from you that I can find. Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.review-board.org VMware, Inc. -http://www.vmware.com On Mon, Mar 23, 2009 at 12:26 AM, Dev devmeg...@gmail.com wrote: Hi just a reminder ..I am awaiting for reply .. On Mar 19, 4:46 pm, Dev devmeg...@gmail.com wrote: Hi, I amunableto seeanyimagesand .cssfilesarenotloaded.In log file it shows '404Notfound' .But media directory available inside reviewboard directory. Pl help me in this regard. Awaiting for reply. -Dev --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit
Re: Unable to get any images and .css files are not loaded
Hi just a reminder ..I am awaiting for reply .. On Mar 19, 4:46 pm, Dev devmeg...@gmail.com wrote: Hi, I amunableto seeanyimagesand .cssfilesarenotloaded.In log file it shows '404Notfound' .But media directory available inside reviewboard directory. Pl help me in this regard. Awaiting for reply. -Dev --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Re: Unable to get any images and .css files are not loaded
I didn't see the Apache file and settings_local.py file that was requested. Perhaps I missed the e-mail, but gmail's not showing anything from you that I can find. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.review-board.org VMware, Inc. - http://www.vmware.com On Mon, Mar 23, 2009 at 12:26 AM, Dev devmeg...@gmail.com wrote: Hi just a reminder ..I am awaiting for reply .. On Mar 19, 4:46 pm, Dev devmeg...@gmail.com wrote: Hi, I amunableto seeanyimagesand .cssfilesarenotloaded.In log file it shows '404Notfound' .But media directory available inside reviewboard directory. Pl help me in this regard. Awaiting for reply. -Dev --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---
Unable to get any images and .css files are not loaded
Hi, I am unable to see any images and .css files are not loaded.In log file it shows '404 Not found' .But media directory available inside reviewboard directory. Pl help me in this regard. Awaiting for reply. -Dev --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups reviewboard group. To post to this group, send email to reviewboard@googlegroups.com To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en -~--~~~~--~~--~--~---