I have changed the port number in apache in bitnami wamp stack by following changes in httpd.conf file.
Listen 8083
ServerName localhost:8083
After changing the server is not able to access in interenet. In localhost it is showing the home page.
I have added the :8083 after the ip address.Can anyone please help on this?
You don't need ServerName localhost:8083 just ServerName localhost. In browser:
localhost:8083
Related
I am using localhost:8080. Does this make any difference while virtual hosting? when I enter lsapp.test in browser, it says page cannot be reached.
Try to change your port to 8080 in httpd-vhosts file
<VirtualHost *:8080>
...
...
...
# Other directives here
</VirtualHost>
then restart your apache server and access like this lsapp.test:8080.
I've been using wamp for 2 weeks at my work without any problem, but now I've some issues :
localhost/phpmyadmin is working well, but
localhost/ and 127.0.0.1 gives me a 404 error :
Not Found The requested URL / was not found on this server.
I already tested the port 80 and it's used by Apache.
I have virtual hosts that works well but I can't create a new one anymore, it won't work, I don't know why.
I've searched a lot on internet but all I can find is solution that just does not work for me so if you could help me, that would be fantastic.
EDIT : I just changed my httpd-vhosts.conf, I had a mistake in my new vhosts, so now they work well, but I still have an error 404 on localhost/.
EDIT : Thank you RiggsFolly for the help, I needed to had localhost in my httpd-vhosts.conf
Ok, this sounds like the browser is trying to use the IPV6 network but you have not entered the IPV6 loopback address into the hosts file
Amend your hosts file to be
127.0.0.1 localhost
127.0.0.1 other.dev
127.0.0.1 other2.dev
::1 localhost
::1 other.dev
::1 other2.dev
The ::1 is the IPV6 loopback address just as 127.0.0.1 is the IPV4 loopback address.
You say you have Virtual Hosts setup, did you also define one, the first one for localhost. Once a Virtual Host is defined the default in httpd.conf for localhost is ignored.
So add this to the top of httpd-vhosts.conf
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp/www
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
Change c: to whatever drive you installed WAMPServer onto.
I've been struggling with this problem for a while and don't know why I can't acces my virtual host, these are the steps I took:
httpd.conf:
# Virtual hosts
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
/etc/host:
'127.0.0.1 mysite-dev.com'.
http-vhosts.conf:
<VirtualHost *:80>
DocumentRoot /Volumes/Miguel/Documents/Workspace/htdocs
ServerName mysite-dev.com
</VirtualHost>
Restart MAMP
Access the url through Chrome, the site isn't loaded and I get the error 'connection refused'
Seems like Pow.cx is taking control over port 80 and that's the reason why I can't access my virtual Host... guess I'll try ton config Pow in a way I can use both without any problem.
If anyone else has this same problem you can follow through this guide:
http://nikhgupta.com/code/serving-legacy-php-applications-using-apache-alongside-pow/
Can some one please help me to create a virtual host in Bitnami Lampstack, which is installed on ubuntu 14.0.4, through which I can access my site without specifying port number in the URL as- http://mysite.local instead of http://mysite.local:8080 ?
I have Bitnami Lampstack 5.3.29 (64 bit) installed on my system (ubuntu 14.0.4). I have configured the virtual host file as follows
<VirtualHost *:8080>
DocumentRoot "/home/qainfotech/lampstack-5.3.29-0/apache2/htdocs/mysite/htdocs"
ServerName mysite.local
</VirtualHost>
which allow me access the home page of my site very easily by the URL http://mysite.loca:8080 but the home page it doesn't redirect properly.
So how can I configure virtual host to access my site without specifying port number in the URL ?
<VirtualHost *:80>
DocumentRoot "/home/qainfotech/lampstack-5.3.29-0/apache2/htdocs/mysite/htdocs"
ServerName mysite.local
</VirtualHost>
Defaut HTTP port is port 80.
So when you don't specify a port in your url, you are using port 80.
We have dedicated windows server where IIS running in :80 and Wamp running in :85.
I successfully created a Virtual Host for wamp server which is running in :85.
NameVirtualHost *:85
<VirtualHost *:85>
ServerName www.my.tv
ServerAlias my.tv
DocumentRoot C:/wamp/www/alpha
ErrorLog "C:/wamp/www/alpha/logs/error.log"
CustomLog "C:/wamp/www/alpha/logs/access.log" common
</VirtualHost>
yes the above code is working & site is running only when i hit www.my.tv:85 but not in www.my.tv
can someone advice on the above where i could configure to make the site run at www.my.tv
If you configure Apache to serve your site on port 85 then the browser (which will default to port 80) won't find it unless you give it the port number it needs.
If you need to see the site on port 80 then you need to configure it on that port. Since you have another server running on that port it's not an option.
One possibility is that you create a virtual site on your IIS server for www.my.tv, but have it redirect to the site on port 85. You can do this in the properties box, on the Home Directory tab.