douyong1886 2014-01-31 21:08
浏览 55

能够通过我的IP访问网站,但不再访问localhost

I'm working on a wordpress website installed on my box using WAMP, so I've always typed in 'localhost' into the address bar in order to access the site. I've always had the apache rewrite module enabled I then had the idea of allowing people on our LAN to access the site via my LAN IP. To do this I edited this line of Apache's httpd.conf file (per instructions on this page http://www.sourcecodester.com/tutorials/php/5155/how-access-wampserver-another-computer-lan.html) :

# Controls who can get stuff from this server.
#
#    Require all granted
#   onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost

(I changed 'Deny from all' to 'Allow from all') Saved the file, accessed my box via IP on an iPad mini, then another windows PC. Come back to the machine that is running WAMP and I'm developing the site on, click one of the navigation links on the page, then I get the 500 Internal Server Error

So I can now only see the wamp menu and the site by typing my own IP in. Some images aren't loaded, and I get Error 500 when trying to login by typing my IP with '/wp-admin' after it (meaning that I can't log in to wordpress to edit anything either)

What is the problem here? I really need to be able to access 'localhost' and continue developing the website, but I can not figure this one out! Thank you

  • 写回答

1条回答 默认 最新

  • dongpin1059 2014-01-31 23:06
    关注

    Try to access localhost/your-wp-dir-path/wp-admin/options-general.php and in

    WordPress Address (URL) option give value as http://localhost/your-wp-dir-path

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog