Open romu70 opened 9 years ago
Show your nginx settings for webvirtcloud virtual host
Which file ? FYI, in the /etc/nginx/sites-enabled/default, there is no virtual host at all, just the default nginx configuration on port 80.
Yes, this is what I ran yesterday when I installed it. I'll erase my current setup and re-run from scratch. Let you know.
In file webvirtmgr.conf for nginx you have parameter "server_name webvirtcloud.example.com;” you need change it
On Fri, Jun 5, 2015 at 10:35 AM, romu70 notifications@github.com wrote:
Yes, this is what I ran yesterday when I installed it. I'll era my current setup and re-run from scratch. Let you know.
— Reply to this email directly or view it on GitHub https://github.com/retspen/webvirtcloud/issues/15#issuecomment-109191355 .
So, I re-ran the setup. The /etc/nginx/conf.d/webvirtcloud.conf file is:
server {
listen 80;
server_name webvirtcloud.example.com;
#access_log /var/log/nginx/webvirtcloud-access_log;
location /static/ {
root /var/www/webvirtcloud;
expires max;
}
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Proto $remote_addr;
proxy_connect_timeout 600;
proxy_read_timeout 600;
proxy_send_timeout 600;
client_max_body_size 1024M;
}
}
And still doesn't work.
Change parameter "server_name webvirtcloud.example.com;" - this is virtual host name
Changed to my machine name and restarted both nginx and supervisord. Browsing http://#server_name value# leads to the nginx default page. http://#server_name value#:8000 leads to "Unable to connect".
http://your_server_name/ - without 8000
Just the "Welcome to nginx" page.
What show?
$ ping your_server_name
127.0.1.1 because I'm connected localy to this server.
Ok, change server_name xxxx;
to server_name localhost;
and restart nginx service. If you would have problem you need check default config for nginx where define sever_name localhost.
Does not change anything, still see the nginx default page.
Do you connect to http://localhost ? Remove default nginx settings.
Yes of course. I'll test with webvirtmgr to see if it's better.
Can you setup nginx like in webvirtmgr, settings for nginx the same
Ok, removed all files within /var/www, and ran again the installation process, and it works! Don't know where the problem was. Just an issue, it seems to not process the CSS, there is no style on the page.
Check /static/
path in config must be root /var/www/webvirtcloud;
Path seems right in the HTML, but the Firefox inspector says: "No CSS Prpperties found".
I've also tried to change "webvirtcloud.example.com" to my machine name in the /etc/nginx/conf.d/webvirtcloud.conf file, but then, I get the "Unable to connect" page again. Only localhost gives me something, but without CSS.
Show your nginx error log
This has been fixed in the latest merges :)
I'm having a similar issue. I can only connect through localhost using port forwarding and css doesnt load. connecting to the remote ip address gives me nothing. How can i fix this?, how can i either get the css to load or connect directly through the ip address?
hi @aa1121 could you please create a vm on the host. then install webvirtcloud on it. this isolates many unknown environment effects
i already have vms on the host, reinstalled webvirtcloud but i'm getting the same issue
@aa1121 install webvirtcloud on a vm not to host
did that, same thing, no css...
whic os do you use for webvirtcloud installation?
in host: debian, in vm ubuntu
i try every installation method like vagrant, docker and normal. all of them works as expected. what causes you problem, i do not know. may be you can try these methods: https://github.com/retspen/webvirtcloud/wiki
I can now access the web interface by connecting to the remote ip address, but if i try to connect through localhost using port forwarding, it still gives me issue where css doesnt load... I found a workaround for that though, i run this command on the remote machine "python /srv/webvirtcloud/manage.py runserver 0:8001 --settings=webvirtcloud.settings-dev" and connect to localhost:8001 on the local machine, with port forwarding enabled. This way, css loads
well never mind, this doesnt work for me anymore, i'll try to get it working again and then i'll update with instructions
ok, these are the instructions that worked for me in order to get it working through localhost using port forwarding, with css loading
cd /srv/webvirtcloud source venv/bin/activate python /srv/webvirtcloud/manage.py runserver 0:8002 --settings=webvirtcloud.settings-dev
you might need root access or not, depending on permissions
Hi, I've installed WebVirtCloud to make some testing. Setup ran fine as much as I can say. If I browse http://localhost, I see the nginx welcome page. But I've tried ports 8000 (like webvirtmgr) and 6080 (taken from the settings.py), none work.
Is webvirtcloud autonomous? Or Do I have to install it with webvirtmgr?