Comments (5)
If you are planning to run it on a dedicated subdomain you can use something like this:
server {
listen 80;
server_name opcachegui.domain.com;
root /srv/www/OpCacheGUI/public;
location ~ ^/(.*).php($|/) {
fastcgi_split_path_info ^(.+.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
location / {
index index.php;
try_files $uri /index.php?$args;
}
}
from opcachegui.
how if in subdirectory?
from opcachegui.
+1
from opcachegui.
settings for subdirectory which works fine for me:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
#in this example path for root folder
root /var/www/yourdomain.com/public_html;
index index.php index.html index.htm;
server_name yourdomain.com;
access_log /var/log/nginx/yourdomain.com_access.log;
error_log /var/log/nginx/yourdomain.com_error.log;
#lets say your files are here: /var/www/yourdomain.com/public_html/opcachegui/public
#so they will be avaialble from URI : yourdomain.com/opcachegui/public
location /opcachegui/public {
index index.php;
try_files $uri $uri/ /opcachegui/public/index.php?$query_string;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
from opcachegui.
+1 I got it working with a similar syntax
location / {
try_files $uri $uri/ /index.php?$request_uri;
}
from opcachegui.
Related Issues (20)
- Login with credentials error HOT 6
- Notice: Undefined index: opcache.load_comments in /var/www/*/src/OpCacheGUI/OpCache/Configuration.php on line 82 HOT 4
- configuration HOT 1
- php7.1 Fatal error: Cannot use variable $request twice HOT 8
- No password_hash function to encrypt password in request HOT 1
- PHP 7 mcrypt_create_iv() is deprecated HOT 2
- Missing translations for new ini directives HOT 1
- Call to undefined function OpCacheGUI\Security\random_bytes() HOT 11
- Using the same variable twice in closure HOT 2
- graph.keys.wasted is not actually the value of wasted keys
- Will not login on php-fpm7.0 HOT 5
- Add PHP Requirement to the Project
- Compatibility with PHP 7.3 HOT 5
- 建议在http://xxx.xxx.xxx/cached-scripts 的页面添加一个搜索的功能 HOT 2
- cached-scripts page fatal error
- Fatal error of v1.0.1 HOT 2
- localhost:8080 HOT 1
- Call to undefined function OpCacheGUI\\Security\\random_bytes() on PHP 5.6 HOT 2
- Can we expect JiT Usage support? HOT 1
- Bump min PHP version to ^8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opcachegui.