Comments (2)
It might be an issue with the nuget I guess.. I have the same issue... and i checked the $_Files object and it is completely empty. ( I am using apache to host)
from simple-nuget-server.
Resolved using this Nginx config:
Example of an Nginx configuration for Simple NuGet Server
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/html/simple-nuget-server/public/;
rewrite ^/$ /index.php;
rewrite ^/\$metadata$ /metadata.xml;
rewrite ^/Search\(\)/\$count$ /count.php;
rewrite ^/Search\(\)$ /search.php;
rewrite ^/Packages\(\)$ /search.php;
rewrite ^/Packages\(Id='([^']+)',Version='([^']+)'\)$ /findByID.php?id=$1&version=$2;
rewrite ^/GetUpdates\(\)$ /updates.php;
rewrite ^/FindPackagesById\(\)$ /findByID.php;
# NuGet.exe sometimes uses two slashes (//download/blah)
rewrite ^//?download/([^/]+)/([^/]+)$ /download.php?id=$1&version=$2;
rewrite ^/([^/]+)/([^/]+)$ /delete.php?id=$1&version=$2;
# NuGet.exe adds /api/v2/ to URL when the server is at the root
rewrite ^/api/v2/package/$ /index.php;
rewrite ^/api/v2/package/([^/]+)/([^/]+)$ /delete.php?id=$1&version=$2;
#location ~ \.php$ {
# include fastcgi_params;
# fastcgi_pass php;
#}
#location = /index.php {
# dav_methods PUT DELETE;
# include fastcgi_params;
# fastcgi_pass php;
# # PHP doesn't parse request body for PUT requests, so fake a POST.
# fastcgi_param REQUEST_METHOD POST;
# fastcgi_param HTTP_X_METHOD_OVERRIDE $request_method;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
dav_methods PUT DELETE;
include snippets/fastcgi-php.conf;
include fastcgi_params;
# With php7.0-cgi alone:
#fastcgi_pass 127.0.0.1:9000;
#fastcgi_param REQUEST_METHOD POST;
#fastcgi_param HTTP_X_METHOD_OVERRIDE $request_method;
# With php7.0-fpm:
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param REQUEST_METHOD POST;
fastcgi_param HTTP_X_METHOD_OVERRIDE $request_method;
#fastcgi_index index.php;
}
# Used with X-Accel-Redirect
location /packagefiles {
internal;
root /var/www/html/simple-nuget-server/;
}
index index.html index.htm index.nginx-debian.html index.php;
}
from simple-nuget-server.
Related Issues (20)
- FeedWriter returns invalid download link HOT 5
- Is ngx_http_dav_module required? HOT 2
- Provide nginx example to run at subdir (example.com/nuget) HOT 2
- allow htaccess HOT 1
- Apache config would be nice HOT 12
- Please provide symbole pack support
- Automated docker builds
- Implement paging HOT 2
- Has this been tested to work with Chocoloatey? HOT 5
- What does HOT 2
- What does "Change "php" to the name of a PHP upstream in your Nginx config." mean? HOT 2
- "Root element is missing" Error; SQLite3 file not being created? HOT 5
- Frameworks without dependencies are not saved to the database and don't appear with the NuGet client or Visual Studio HOT 1
- Nothing is pushed, no error even if i specify wrong key
- Failed to process request. 'ZipArchive::open(): Empty string as source'. The remote server returned an error: (500) ZipArchive::open(): Empty string as source.
- Not seeing packages in the browser HOT 1
- SimpleXMLElement::addChild(): unterminated entity referenc HOT 1
- Configurable username and password for DBO HOT 3
- FeedWriter does not honor actual (or proxied) protocol HOT 1
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 simple-nuget-server.