webserver

MySQL doesn't starts on AMPPS OS X

最后都变了- 提交于 2020-04-08 06:33:09
问题 I have I problem with starting mysql using AMPPS. I'm Using OS X Maverics and last version of Ammps. After little system crash and restart I can`t start mysql. mysql.err 2014-01-22 18:12:41 398 [Note] Plugin 'FEDERATED' is disabled. 2014-01-22 18:12:41 398 [Note] InnoDB: The InnoDB memory heap is disabled 2014-01-22 18:12:41 398 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2014-01-22 18:12:41 398 [Note] InnoDB: Compressed tables use zlib 1.2.3 2014-01-22 18:12:41 398 [Note]

Restrict access to directories through ip address

青春壹個敷衍的年華 提交于 2020-03-26 07:07:30
问题 I have a webserver with apache, say ip is 12.345.678.90 . In my www directory there are a few sites, say, site1 and site2 . Both belong to the same ip address - I created virtual hosts. Websites are on cakephp framework and there are a lots of directories, for example, app , app/tmp , lib , lib/Cake etc. When accessing the website like http://site1.com or http://site2.com everything is all right, and no way these directories can be viewed or accessed, but through ip I can see everything. http

Restrict access to directories through ip address

狂风中的少年 提交于 2020-03-26 07:06:57
问题 I have a webserver with apache, say ip is 12.345.678.90 . In my www directory there are a few sites, say, site1 and site2 . Both belong to the same ip address - I created virtual hosts. Websites are on cakephp framework and there are a lots of directories, for example, app , app/tmp , lib , lib/Cake etc. When accessing the website like http://site1.com or http://site2.com everything is all right, and no way these directories can be viewed or accessed, but through ip I can see everything. http

从「林」开始: imx51-linux-webserver(goAhead 2.5)

北城余情 提交于 2020-03-02 18:10:31
///////////////////从「林」开始: imx51-linux-webserver(goAhead 2.5) ///////////////// ///////////////////////////////////////////////////////////////// //environment: // compile system:Ubantu 10.04 // target system: imx51 // resource: webs-2-5.tar.gz // reference: http://blog.csdn.net/reille/article/details/6784809 // Thanks: reille ////////////////////////////////////////////////////////////////// //////////////////////////////compile webs///////////////////// $ tar -xzvf webs-2-5.tar.gz $ cd webs-2-5/LINUX $ vim MAKEFILE + CROSS_COMPILE = /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1

使用NanoHTTPD在android实现web迷你服务器

≯℡__Kan透↙ 提交于 2020-02-29 12:47:51
NanoHTTPD的官方代码如下 import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintStream; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.net.URLEncoder; import java.util.Date; import java.util.Enumeration; import java.util.Vector; import java.util.Hashtable; import java.util.Locale; import java.util.Properties; import java.util.StringTokenizer; import java

How to retrieve remote port in Django

梦想与她 提交于 2020-02-24 12:19:13
问题 I am writing a web server script and need remote port from which a client connected. Is there any way I may retrieve it? I am using django framework for development. ADDED: When a client sends a HTTP Request, there would be one source TCP port at the machine, which would be modified in NAT process. Finally, SYN (TCP) to web server would be from, say port P1. I need that port P1 from which the web server receives a connection request. Now in HttpRequest meta dict, I was not able to see it. Is

Change the default index.php/index.html to something else on PHP Server

寵の児 提交于 2020-02-08 07:10:05
问题 I am using the server environment that comes with PHP as my development server. I.e. I'm using the following to run websites. php -S localhost:3000 I want it to look for something other than index.php or index.html as the default for the particular folder (something like source.html). I know I could do this on Apache. But is there a way to do the same with the above mentioned PHP server? 回答1: Don't edit your Apache config files (like .htaccess). The PHP inbuilt server does not use them

Google Earth API, KML on local Web Server [closed]

纵饮孤独 提交于 2020-02-04 05:38:05
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am trying to load a .kml from a webserver that we use to host our company intranet on, will this work?! The GE API loads up fine but does not currently display the KML file?! Also I cant seem to paste the code

Showing sensor reading in a django website

£可爱£侵袭症+ 提交于 2020-02-03 02:32:51
问题 I want to design a web based application for showing sound sensor readings, collected from an Arduino based setup (and also show some analysis results). For making my arduino setup work I had developed a python program named 'ard_sensor_project.py' which collects readings and store in .csv file and create a graph. Now I want to display the readings generated in a django website. For that I have imported 'ard_sensor_project.py' in views.py of my django site and called a method to print the

NGINX not routing to the net core Project (with port other than 80)

谁都会走 提交于 2020-02-03 00:24:06
问题 I have the following in the default config file in the /etc/nginx/sites-available folder server { listen 80; location / { proxy_pass http://10.XX.XX.XX:5000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; proxy_cache_bypass $http_upgrade; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } server { listen 81; location