Thanks you so much. Your answers are very useful for me. I change to upload a folder to google driver. This is the link to my simple web app source : https://drive.google.com/drive/folders/0B0mqMqYRT0lfNEw5U3hBc2lDNU0
i don't know it is possible to build a big data website with my source code. I hope to hear from you soon. Vào 22:24:00 UTC+7 Chủ Nhật, ngày 21 tháng 5 năm 2017, Graham Dumpleton đã viết: > > Is really not a good idea to be sending people .zip files and expect them > to open them. > > On the general issue of being able to support a billion users, if you > expect a large number of concurrent users, you are going to have much > bigger problems to worry about than whether a specific web server is going > to be suitable. For large numbers of concurrent users you aren't going to > be able to do it all on one host, so you are going to have to worry about > scaling out and having many hosts to support. I would suggest you just get > your application running first before worrying about such issues. > > Graham > > On 18 May 2017, at 8:12 PM, phong ungxuan <[email protected] > <javascript:>> wrote: > > i send you my web app code on google driver as link below: > > https://drive.google.com/file/d/0B0mqMqYRT0lfN1VjdWFiU0VBSTg/view?usp=sharing > > to show you the way which i use to build my website. > > is it possible to build a website with billion users account by mod_wsgi > like my web app? > > Vào 23:51:26 UTC+7 Thứ Hai, ngày 13 tháng 4 năm 2015, Graham Dumpleton đã > viết: >> >> I am not sure if you are asking a specific question or not. >> >> Note that in this sort of situation where you are using pip installable >> mod_wsgi but then using system wide Apache rather than mod_wsgi-express >> command, then you would if using a Python installation in a non standard >> location need to tell mod_wsgi where that Python installation is located. >> >> I would therefore expect you to have: >> >> LoadModule wsgi_module >> /usr/local/lib/python3.4/site-packages/mod_wsgi-4.4.11-py3.4-freebsd-10.1-RELEASE-amd64.egg/mod_wsgi/server/mod_wsgi-py34.so >> WSGIPythonHome /usr/local >> >> The alternative to setting LoadModule to use the module direct out of the >> Python installation, is to run, after having done pip install of mod_wsgi: >> >> sudo mod_wsgi-express install-module >> >> This would copy the .so from the Python installation into the Apache >> installation modules directory. When it does that it would output to the >> display what you would then need to add to the Apache configuration. Thus >> it likely would have then output: >> >> LoadModule wsgi_module modules/mod_wsgi-py34.so >> WSGIPythonHome /usr/local >> >> The final path to LoadModule may be relative or absolute, depending on >> the way Apache installation was configured. The location will be the >> modules directory for the main Apache installation, so will only work if >> you have actually used ‘install-module’ command. >> >> Finally, if swapping what version of Python is being used for mod_wsgi >> used by system Apache, it is a good idea to ensure you do a ‘stop’ of >> Apache and not a ‘restart’ or ‘reload’. >> >> Graham >> >> On 13 Apr 2015, at 10:16 am, [email protected] wrote: >> >> My way configure apche24 with python3.4.3 modwsgi . I don't know what >> happend then , but now it's working. >> >> i read the mod_wsgi 4.4.11 , and but not successful. >> >> i i'm using mod_wsgi3.5. >> >> But now i try to test wsgi 4.4.11 on freebsd. >> >> this is my configure base on the way to configure mod_wsgi 3.5. >> >> >> >> LoadModule wsgi_module >> /usr/local/lib/python3.4/site-packages/mod_wsgi-4.4.11-py3.4-freebsd-10.1-RELEASE-amd64.egg/mod_wsgi/server/mod_wsgi-py34.so >> >> WSGIDaemonProcess localhost processes=2 threads=15 display-name=%{GROUP} >> WSGIProcessGroup localhost >> >> WSGIScriptAlias /wsgi-scripts/ /usr/local/www/apache24/wsgi-scripts/ >> >> Alias /wsgi-scripts/ /usr/local/www/apache24/wsgi-scripts/ >> >> >> <Directory /usr/local/www/apache24/wsgi-scripts/> >> >> Options ExecCGI MultiViews >> MultiviewsMatch Handlers >> #Vì mình muốn thêm trong folder chạy được cả wsgi và cgi nên mình để như >> thế này >> AddHandler cgi-script .cgi .py >> AddHandler wsgi-script .wsgi .py >> >> Order allow,deny >> Allow from all >> </Directory> >> >> >> >> >> file helloword.py : http://localhost/wsgi-scripts/hello.py .. >> >> >> def application(environ, start_response): >> status = '200 OK' >> output = b'Hello World!' >> >> response_headers = [('Content-type', 'text/plain'), >> ('Content-Length', str(len(output)))] >> start_response(status, response_headers) >> >> return [output] >> >> >> >> >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "modwsgi" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/modwsgi. >> For more options, visit https://groups.google.com/d/optout. >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] <javascript:> > . > Visit this group at https://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
