I have set up a new virtual host on WAMP Server version 3.0.6 which contains a dot in the name (specifically bowla300.local)
My vhosts.conf file is configured to call it bowla300.local, as is also my hosts file. When I restart WAMP the localhost page shows this name correctly in both the Your Projects and Your Virtual Hosts columns and the links work as expected. So far so good... But on the Your Virtual Hosts menu from the main WAMP server the server name appears only as bowla300 without the .local at the end and the link does not work. I don't know what I need to change to correct this. It is possible that I initially set the site name up incorrectly without the ".local" but having subsequently revisited vhosts.conf the name is now definitely correct and the fact it appears correct on the localhost page also suggests it is valid. Any ideas why the menu entry may not be including the ".local"?
I attach my vshosts entries as below (which I admit I did hand edit as I have only just noticed the option on the local host page to create a virtual host that way):-
<VirtualHost *:8080>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:8080>
ServerName bowla300.local
DocumentRoot "c:/wamp64/www/bowla300.local"
<Directory "c:/wamp64/www/bowla300.local/">
Options Indexes FollowSymLinks
AllowOverride All
Require local
</Directory>
</VirtualHost>
The problem resolved itself after a clean reboot. Restarting WAMP was not sufficient but restarting the operating system fixed it.
I have a Rails 4 application deployed with Apache and Passenger.
The configuration was provided by this thread and everything worked perfectly.
I created a whenever job that runs when the machine restarts, and I rebooted the machine to check if it works, and it does.
BUT, from some reason my web address is no longer reachable. It seems like the machine doesn't route the requests to the application (I get "this webpage isn't available" message from the browser).
I've double checked the /etc/httpd/conf/httpd.conf file to make sure the configuration still exists and it does.
I also tried to push again the application to the machine using cap production deploy, and didn't get any errors while doing that.
My configuration in the /etc/httpd/conf/httpd.conf file is the following:
<VirtualHost *:80>
ServerName csi-eng-perf.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /var/www/eng_performance/current/public/
<Directory /var/www/eng_performance/current/public/>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
# Uncomment this if you're on Apache >= 2.4:
#Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I have no idea what have gone wrong.
Well, as it turns out #Substantial suggestion was correct.
I wasn't able to issue the apachectl status command (needed the installation of another package called links) but the restart command did the trick- apachectl -k restart.
I am having issue that with this alias when I am pointing to a server at that time images are not showing.
My configuration of server for the application is
Alias /questions /app/xyz/public
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p327#abcd/ruby
#RailsBaseURI /beingme
RailsBaseURI /questions
<Directory /app/xyz/public>
RailsEnv production
Options Indexes FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Please provide me the solutions.
You have to define one more Alias for assets
Alias /assets /app/xyz/public/assets
It will work for you, I hope.
I just switch to win 8 from win 7. On win7 everything is OK with wampserver, but
When i try to access my wampserver via url localhost on win8, i got this error
Forbidden
You don't have permission to access / on this server.
but via url 127.0.0.1 is OK.
I try fix that error by change in phpmyadmin.conf into
<Directory "c:/wamp/apps/phpmyadmin3.4.9/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
Could anyone help me fix this error? Thanks!
Modify the apache HTTPD.CONF file. Change "Listen 80" to "Listen 0.0.0.0:80
http://forum.wampserver.com/read.php?2,93143
Change httpd.conf also and put Allow from all as given below.
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
If you have an Anti-virus like AVIRA or AVG it certenly blocked changes to localhost by adding the "::1" entry in the HOSTS file in c:\windows\system32\drivers\etc\HOSTS
All you have to do is to remove this line (::1) or just comment it by adding "#" sign in front of it in the hosts file.
You must install Visual Studio C++ 2010 SP1 Redistributable Package x86 or x64
This is a must when you install WampServer on a Windows 8 Machine.
Thing is, some software are built on MS Visual Studio, thus require VS C++ reditributable Packages to run.
VC10 SP1 vcredist_x86.exe 32 bits : microsoft.com/download/en/details.aspx?id=8328
VC10 SP1 vcredist_x64.exe 64 bits : microsoft.com/download/en/details.aspx?id=13523
If above downloads don't work, try:
Visual C++ Redistributable for Visual Studio 2012 Update 4
http://www.microsoft.com/en-us/download/details.aspx?id=30679
This for the applications built on latest Visual Studio 2012.
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
This is my .conf file...
I had the same issue and I tried all of the above with no results.
Then, I re-install the WampServer (deleting the wamp folder manually), and this worked, but finally I caught what was wrong in my case...
I made a change on the http.conf file, I un-commented this>
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
And then I opened the un-commented file to add my virtual host, but forgot to add one for the local host...
So, just by adding this in the httpd-vhosts.conf file>
<VirtualHost *:80>
DocumentRoot "C:\wamp\www"
ServerName localhost
</VirtualHost>
All went back to normal...
i solved the problem by disabling the firewall for port 80.
Go to Search on right side of windows.
search "firewall".
open the "firewall with advanced".
go to inbound rules.
click on "new rule".
select the "Port" option.
click "next"
select "TCP" option.
select "Specific local ports:".
type "80" in next text box
click next.
select the "Allow the connection".
click "next".
click "next".
give the name "Port 80 Allow Rule".
click "next".
Note: this is not a secure way. delete this newly created rule when you complete your work.
Here is an answer that worked for me:
in httpd.conf file:
I changed this:
<Directory />
AllowOverride none
Require all denied
</Directory>
to
<Directory />
AllowOverride none
Require all granted
</Directory>
This may not be a good solution, but to simply run standalone projects on localhost without sql or php is fine.
The problem:
I have created a Rails project skeleton using rails new TestApp in the /var/www/ directory of my server. The Rails default index.html displays and works properly (i.e., you see the rails logo and when you click on "About your application's environment" you get a correct listing of the environment specifications used on the server) when I access the site from the same network on which the server is running. However, if I access the site from a machine on a different network than the server's, the page displays but I do not get the rails logo image, and clicking on "About your application's environment" results in the following error display on the page:
Not Found
The requested URL /TestApp/rails/info/properties was not found on this server
And that URL shouldn't be found, because it doesn't exist. However, TestApp/public/rails/info/properties does exist.
Configuration:
The site resides in /var/www/TestApp and I access it from a Sub-URI. I have created a symbolic link in /var/www/ called rails as follows: rails -> /var/www/TestApp/public, such that the project can be accessed from www.mydomain.com/rails. My Apache configuration is the following, note that I've omitted,changed, or shortened some parts within the <VirtualHost> tag for brevity:
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12/ex$
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby
<VirtualHost *:80>
ServerAdmin webmaster#localhost
ServerName www.mydomain.com
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
.
.
.
#Rails Configuration
RailsBaseURI /rails
RailsEnv development
PassengerUserSwitching off
PassengerDefaultUser www-data
<Directory /TestApp/public>
Options FollowSymLinks -MultiViews
AllowOverride All
Allow from all
</Directory>
#End Rails Configuration
.
.
.
</VirtualHost>
A couple of things: the appropriate folders are owned by www-data with the appropriate permissions as defined by the Passenger documentation. When setting up the symlink and RailsBaseURI settings I followed the Passenger documentation.
I guess I'm at a loss here since everything seems to be working when accessing the website from the same network on which the server resides. I'm not sure why things aren't working out when accessing the site from a different network, but I feel like paths to certain resources/assets (like the rails logo) aren't resolving properly. Perhaps my symlink is configured inappropriately, or something is wrong with my Apache configuration?
Any help would be appreciated.
The issue of a somewhat broken default Rails page is not totally abnormal, it turns out.
I removed the default Rails page and replaced with another page that included some Rails code and everything worked like a charm.